when I was homeless, I jacked off in a parking garage. also in public bathroom once. eventually I just stopped jacking off. wasn't getting laid either. it is tough for a week or so, getting boners literally every other minute, and then your balls reach maximum capacity, and it's no big deal.
if you must, just remember not to, because with time, it will pass