mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 09:28:41 +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])):
|
int(self.get_pref("listen_on")[1])):
|
||||||
if deluge_core.listening_port() != i:
|
if deluge_core.listening_port() != i:
|
||||||
pass
|
pass
|
||||||
|
else:
|
||||||
|
import random
|
||||||
|
ports = [random.randrange(49152, 65535), random.randrange(49152, 65535)]
|
||||||
|
ports.sort()
|
||||||
|
deluge_core.set_listen_on(ports)
|
||||||
else:
|
else:
|
||||||
import random
|
import random
|
||||||
ports = [random.randrange(49152, 65535), random.randrange(49152, 65535)]
|
ports = [random.randrange(49152, 65535), random.randrange(49152, 65535)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue