From e62942c0b4043ff596794725f36384d911ed1d99 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Mon, 30 Jul 2007 00:01:57 +0000 Subject: [PATCH] fix if/then loop --- src/core.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core.py b/src/core.py index f02aadc29..5591e0590 100644 --- a/src/core.py +++ b/src/core.py @@ -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)]