If this will cause a problem, try getting spandex trunks. And make sure you don't jack off after getting your errection, then you will think about masturbation when putting them on and your brain makes that connection.
Hope it helps!~Roger[/i]