Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #24 from qstokkink/fix_startup_upload_only
Browse files Browse the repository at this point in the history
Fixed first download not starting when checking metainfo
  • Loading branch information
qstokkink authored Apr 19, 2024
2 parents 5862b67 + 6c971c8 commit 9cc7f3b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 9cc7f3b

Please sign in to comment.