Well if your H got all flirty, then that wasnt as counterproductive as you though was it?

As for the other guy, not to pry too much, but would you have slept with him that night? He may have just been moving too fast for your comfort so you slammed the breaks. Maybe your sleaze bag detector needs recalibration and he was just being flirty? Hard to tell. Is the guy still after you or did he move on? Guys are kinda used to this kind of rejection anyways so it probably didn't hit him that hard.

Either way you probably deserve a strong confident man whether your H or someone else.