'Sets the _infohash_list to None and returns a deferred that has succeeded.
:return: A deferred that succeeds immediately.'

@inlineCallbacks
def cleanup(self):

    (yield self.wait_for_deferred_tasks())
    self.cancel_all_pending_tasks()
    self._infohash_list = None
