Fix overzealous legacy code removal from torrentmanager