sublimate
verb (used with object)
to divert the energy of (a sexual or other biological impulse) from its immediate goal to one of a more acceptable social, moral, or aesthetic nature or use.
Used to describe an action that was ongoing continuously in the past up until another past event interrupted it.