From 4935d6a6ebfbdbad0b6b70510bec09006d36db2a Mon Sep 17 00:00:00 2001 From: Quinten Stokkink Date: Fri, 13 Sep 2024 15:39:58 +0200 Subject: [PATCH] Set active downloads/seeds to unlimited --- .../core/libtorrent/download_manager/download_manager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tribler/core/libtorrent/download_manager/download_manager.py b/src/tribler/core/libtorrent/download_manager/download_manager.py index 6346306ebf..b87c978bc7 100644 --- a/src/tribler/core/libtorrent/download_manager/download_manager.py +++ b/src/tribler/core/libtorrent/download_manager/download_manager.py @@ -287,7 +287,10 @@ def create_session(self, hops: int = 0) -> lt.session: # noqa: PLR0915 "enable_upnp": int(self.config.get("libtorrent/upnp")), "enable_dht": int(self.config.get("libtorrent/dht")), "enable_lsd": int(self.config.get("libtorrent/lsd")), - "enable_natpmp": int(self.config.get("libtorrent/natpmp"))} + "enable_natpmp": int(self.config.get("libtorrent/natpmp")), + "active_downloads": -1, + "active_seeds": -1 + } # Copy construct so we don't modify the default list extensions = list(DEFAULT_LT_EXTENSIONS)