Walked in on my husband

So tonight I went to shut off the light in living room and walked in the bathroom to find my husband at the end master bating. Now I am at my last straw so either he had his girlfriend on the other end of it and was being extremely quiet or it was really porn. We have had our problems but since I started working again we’ve drifted away from each other. He is always angry with me and I absolutely hate him. I think at this point we’re together for the kids. I don’t know what to do I feel as if I’ve been cheated on.