mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
fix if/then loop
This commit is contained in:
parent
4f389246e2
commit
e62942c0b4
1 changed files with 5 additions and 0 deletions
|
@ -855,6 +855,11 @@ class Manager:
|
|||
int(self.get_pref("listen_on")[1])):
|
||||
if deluge_core.listening_port() != i:
|
||||
pass
|
||||
else:
|
||||
import random
|
||||
ports = [random.randrange(49152, 65535), random.randrange(49152, 65535)]
|
||||
ports.sort()
|
||||
deluge_core.set_listen_on(ports)
|
||||
else:
|
||||
import random
|
||||
ports = [random.randrange(49152, 65535), random.randrange(49152, 65535)]
|
||||
|
|
Loading…
Add table
Reference in a new issue