summaryrefslogtreecommitdiffstats
path: root/module/ThreadManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-06-06 17:58:28 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-06-06 17:58:28 +0200
commit2bced4f3d36304a614392dc703d32eb372e73e68 (patch)
treef0caae022f2f1ffc80d473ac94b61d0b4fb3e120 /module/ThreadManager.py
parentversion fix (diff)
downloadpyload-2bced4f3d36304a614392dc703d32eb372e73e68.tar.xz
time import fix
Diffstat (limited to 'module/ThreadManager.py')
-rw-r--r--module/ThreadManager.py6
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)