diff --git a/src/tribler/core/libtorrent/download_manager/download_manager.py b/src/tribler/core/libtorrent/download_manager/download_manager.py index f3d1f4709..370bcc5be 100644 --- a/src/tribler/core/libtorrent/download_manager/download_manager.py +++ b/src/tribler/core/libtorrent/download_manager/download_manager.py @@ -633,8 +633,8 @@ async def start_handle(self, download, atp): download.post_alert('add_torrent_alert', {"handle": existing_handle}) else: # Otherwise, add it anew - _ = self.register_anonymous_task('AddTorrent', self._async_add_torrent, ltsession, infohash, atp, - ignore=(Exception,)) + _ = self.replace_task(f"AddTorrent{infohash}", self._async_add_torrent, ltsession, infohash, atp, + ignore=(Exception,)) async def _async_add_torrent(self, ltsession, infohash, atp): self._logger.debug("Adding handle %s", hexlify(infohash))