From 452532e18b789d0f6a08251e5620ebc1eb3a797a Mon Sep 17 00:00:00 2001 From: Hachi-R Date: Wed, 6 Nov 2024 22:41:59 -0300 Subject: [PATCH] chore: removed remove_torrent() --- torrent-client/torrent_downloader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/torrent-client/torrent_downloader.py b/torrent-client/torrent_downloader.py index 5738efb8..c68eb6ec 100644 --- a/torrent-client/torrent_downloader.py +++ b/torrent-client/torrent_downloader.py @@ -151,6 +151,7 @@ class TorrentDownloader: 'gameId': self.downloading_game_id, 'progress': status.progress, 'downloadSpeed': status.download_rate, + 'uploadSpeed': status.upload_rate, 'numPeers': status.num_peers, 'numSeeds': status.num_seeds, 'status': status.state, @@ -158,7 +159,6 @@ class TorrentDownloader: } if status.progress == 1: - self.session.remove_torrent(torrent_handle) self.downloading_game_id = -1 return response @@ -168,7 +168,7 @@ class TorrentDownloader: for game_id, torrent_handle in self.torrent_handles.items(): if game_id == self.downloading_game_id: - return + continue status = torrent_handle.status() info = torrent_handle.torrent_file()