That also wasn't the first time I had been harassed at work. In the beginning it was a little exhausting because I felt I should stick it out - perhaps as some sort psychological rite of passage. However, I eventually learned the easy way to deal with it. Don't fight. Don't argue. Just leave. There are men and women who deal with harassment everyday gracefully.
The tech industry is so expansive and filled with opportunity that the moment I feel an employer doesn't have my back, I know I can split and not care. I don't know why more people don't see it the same way.