forked from platypush/platypush
Only set up listen ports for libtorrent if it's a new session
This commit is contained in:
parent
f23afa3c53
commit
99d17b666c
1 changed files with 1 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue