<human>: Here's my delimma.

Recently, my friend caught me hanging out with his ex-girlfriend. I'm gay, so it's not like I'm going to hook up with her, we've just both gone through some terrible, recent breakup, and we've connected a lot though this.

Last weekend, my (now ex-friend), his ex-girlfriend, and I were at a bar. She was there because someone had been harassing her at work, and my friend had invited her along. That night, I had broken up with my boyfriend, so we're both in this same boat that we're bothered and down and sort of needed a pick me up.

My friend, at the time, just really didn't want anything to do with either of us. He said to me that his ex's problem wasn't really much he could do about, because, in his words, "we're not together now, so what is it to me?" As for myself, he couldn't cheer me up because "I'm not gay, I haven't been in a good relationship for a while, so I can't give you any advice". We both weren't really looking for advice, but rather just to have a fun night hanging out.

We both left very pissed off at our friend, and I ended up back at her house, and had a good night with her. Since then, we've been hanging out, and I must say, she's a much better friend than he's been. However, last night he caught me hanging out with her, said I broke the 'bro-code', and that "if this were the sopranos, you'd be whacked"...

What should I do about this Reddit?

Provide a brief overview of the text.
<bot>: I'm gay, hanging out with my friends ex-girlfriend, he thinks I went behind his back, and has threatened me and wants to never talk to me again.