Caught husband masturbating

I once again caught my hustband masturbating in the bathroom, it makes me mad because he gets sex often. And I don't mind him masturbating I just don't like it when he does it while Iam in the house with our daughter. Does your SO ever do this? Iam I over reacting? I also have told him before if he was excited to let me know. We would of made it work.