cosmetic touchup

This commit is contained in:
Marcos Pinto 2007-07-28 21:14:32 +00:00
parent 98c6ab7137
commit 83d45c4626
1 changed files with 3 additions and 1 deletions

View File

@ -850,7 +850,9 @@ class Manager:
if self.get_pref("random_port") == False:
PREF_FUNCTIONS[pref](self.get_pref(pref))
else:
if deluge_core.listening_port() != 0 and deluge_core.listening_port() != self.get_pref("listen_on")[0] and deluge_core.listening_port() != self.get_pref("listen_on")[1]:
if deluge_core.listening_port() != 0 and \
deluge_core.listening_port() != self.get_pref("listen_on")[0] \
and deluge_core.listening_port() != self.get_pref("listen_on")[1]:
pass
else:
import random