mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 01:48:40 +00:00
fix if/then loop
This commit is contained in:
parent
4f389246e2
commit
e62942c0b4
1 changed files with 5 additions and 0 deletions
|
@ -860,6 +860,11 @@ class Manager:
|
|||
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)]
|
||||
ports.sort()
|
||||
deluge_core.set_listen_on(ports)
|
||||
else:
|
||||
PREF_FUNCTIONS[pref](self.get_pref(pref))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue