I think since you are in a relationship, at times you have to think beyond your immediate need to consider whether making a choice is worth losing your significant other. I don't know how serious the flirting is but, however the situation, if this is a thing that hurts your relationship, it could motivate you to curtail your flirting and communicate with your husband what you need. Just a thought.