Only set up listen ports for libtorrent if it's a new session

This commit is contained in:
Fabio Manganiello 2019-10-08 10:06:33 +00:00
parent f23afa3c53
commit 99d17b666c

View file

@ -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,