diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-02-18 22:33:06 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-02-18 22:33:06 +0100 |
commit | d79c1b3a6d1a6481b77598edf71fcb53eb6bb655 (patch) | |
tree | 04746ec4511a4d3e134a3781cb7e68dc3974411c /module/ThreadManager.py | |
parent | youtube fix, xdccrequest abort dl implemented (diff) | |
download | pyload-d79c1b3a6d1a6481b77598edf71fcb53eb6bb655.tar.xz |
Diffstat (limited to 'module/ThreadManager.py')
-rw-r--r-- | module/ThreadManager.py | 3 |
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) |