diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-06-06 17:58:28 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-06-06 17:58:28 +0200 |
commit | 2bced4f3d36304a614392dc703d32eb372e73e68 (patch) | |
tree | f0caae022f2f1ffc80d473ac94b61d0b4fb3e120 /module/ThreadManager.py | |
parent | version fix (diff) | |
download | pyload-2bced4f3d36304a614392dc703d32eb372e73e68.tar.xz |
time import fix
Diffstat (limited to 'module/ThreadManager.py')
-rw-r--r-- | module/ThreadManager.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/ThreadManager.py b/module/ThreadManager.py index 4befebd28..355bbbc88 100644 --- a/module/ThreadManager.py +++ b/module/ThreadManager.py @@ -211,7 +211,7 @@ class ThreadManager(Thread): if self.checkReconnect(): self.reconnecting = True self.reconnect() - time.sleep(1.1) + sleep(1.1) self.reconnecting = False self.lock.release() @@ -242,14 +242,14 @@ class ThreadManager(Thread): self.parent.hookManager.beforeReconnecting(ip) reconn = subprocess.Popen(self.parent.config['reconnect']['method'])#, stdout=subprocess.PIPE) reconn.wait() - time.sleep(1) + sleep(1) ip = "" while ip == "": try: ip = re.match(".*Current IP Address: (.*)</body>.*", getURL("http://checkip.dyndns.org/")).group(1) #versuchen neue ip aus zu lesen except: ip = "" - time.sleep(1) + sleep(1) self.parent.hookManager.afterReconnecting(ip) self.parent.logger.info(_("Reconnected, new IP: %s") % ip) |