Depends on the circumstance. If I am there for someone I care about, or a personal or work duty, I will grin and bear it until I can leave.
If I have nothing to keep me there, I will wait it out to see if I change my mind. I am open to being uncomfortable, but if the feeling stays and gets worse, I leave as quickly as possible.