summaryrefslogtreecommitdiffstats
path: root/module/ThreadManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-02-18 22:33:06 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-02-18 22:33:06 +0100
commitd79c1b3a6d1a6481b77598edf71fcb53eb6bb655 (patch)
tree04746ec4511a4d3e134a3781cb7e68dc3974411c /module/ThreadManager.py
parentyoutube fix, xdccrequest abort dl implemented (diff)
downloadpyload-d79c1b3a6d1a6481b77598edf71fcb53eb6bb655.tar.xz
closed #242, #243, #244
Diffstat (limited to 'module/ThreadManager.py')
-rw-r--r--module/ThreadManager.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/ThreadManager.py b/module/ThreadManager.py
index f3da9a713..0462dd8c2 100644
--- a/module/ThreadManager.py
+++ b/module/ThreadManager.py
@@ -157,11 +157,12 @@ class ThreadManager:
("http://checkip.dyndns.org/",".*Current IP Address: (\S+)</body>.*")]
ip = ""
- while not ip:
+ for i in range(10):
try:
sv = choice(services)
ip = getURL(sv[0])
ip = re.match(sv[1], ip).group(1)
+ break
except:
ip = ""
sleep(1)