From 99d17b666cfd0a617cd6e2520a14c5cdcb67fa2d Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 8 Oct 2019 10:06:33 +0000 Subject: [PATCH] Only set up listen ports for libtorrent if it's a new session --- platypush/plugins/torrent.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platypush/plugins/torrent.py b/platypush/plugins/torrent.py index 75a08594..63eaafc0 100644 --- a/platypush/plugins/torrent.py +++ b/platypush/plugins/torrent.py @@ -408,8 +408,7 @@ class TorrentPlugin(Plugin): if not self._session: # noinspection PyArgumentList self._session = lt.session() - - self._session.listen_on(*self.torrent_ports) + self._session.listen_on(*self.torrent_ports) params = { 'save_path': download_dir,