Take a lot of cold showers? Find a distraction to take your mind and romantic thoughts elsewhere?
Sometimes it works. Many times it doesn't. Especially if he's otherwise committed.
When it fails, it fails spectacularly and causes a lot of discomfort for not just the parties involved but the whole dojo family.
Just my opinion.