Nothing you can do if youre going through a losing streak. If its too bad then take some time out from gambling, try & find other things you enjoy.
I think there is something you can do if you know that you are in a losing streak already and that is to quit gambling but I doubt that gamblers will do it because they will gamble every single bit of money they have. I agree with what you said that if you are frustrated in gambling because of losing streak, find other things to do like hanging out with friends etc.