'The callback that will be called by LibtorrentMgr when a download was successful.'

@call_on_reactor_thread
def _success_callback(self, meta_info):

    tdef = TorrentDef.load_from_dict(meta_info)
    assert (tdef.get_infohash() in self._running_requests)
    infohash = tdef.get_infohash()
    self._logger.debug(u'received    torrent    %s    through    magnet', hexlify(infohash))
    self._remote_torrent_handler.save_torrent(tdef)
    self._running_requests.remove(infohash)
    self._requests_succeeded += 1
    self._total_bandwidth += tdef.get_torrent_size()
    self._start_pending_requests()
