How to stay emotionally stable?

When you sit there for hours not catching shit and people are heckling you about never playing a hand (players too loose to bluff), how the hell do you remain emotionally stable/not bored out of your mind? I’m losing games when I know the other guy has me beat because all I have is top pair but I haven’t played in hours…