mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-05 16:13:41 +00:00
fix major oops
This commit is contained in:
parent
267ba8f7ac
commit
a1534878c7
@ -845,8 +845,7 @@ class Manager:
|
|||||||
print "Applying preferences"
|
print "Applying preferences"
|
||||||
|
|
||||||
for pref in PREF_FUNCTIONS:
|
for pref in PREF_FUNCTIONS:
|
||||||
if PREF_FUNCTIONS[pref] is not None and self.get_pref("random_port") \
|
if PREF_FUNCTIONS[pref] is not None:
|
||||||
== False:
|
|
||||||
PREF_FUNCTIONS[pref](self.get_pref(pref))
|
PREF_FUNCTIONS[pref](self.get_pref(pref))
|
||||||
if self.get_pref("random_port"):
|
if self.get_pref("random_port"):
|
||||||
import random
|
import random
|
||||||
|
Loading…
x
Reference in New Issue
Block a user