Haha. This has happened to me before. I extend my hand, the other guy isn't looking, so I'm just left hanging there. Usually, if I know the person well, I just give the guy a little tap on the arm with my hand, or say something like, "don't leave me hanging, bro".
It probably wasn't intentional...