summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/Plugin.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-15 01:39:26 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-15 06:24:04 +0100
commit9f8a71f020fdfd1d87f133bcf1fffef11f864574 (patch)
treea8f864cbc01391a011d69b9b753a3e43afe0628f /pyload/plugins/Plugin.py
parent[SimpleCrypter][SimpleHoster] Temp workaround (diff)
downloadpyload-9f8a71f020fdfd1d87f133bcf1fffef11f864574.tar.xz
[Plugin] Fix wait routine 2
Diffstat (limited to 'pyload/plugins/Plugin.py')
-rw-r--r--pyload/plugins/Plugin.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/pyload/plugins/Plugin.py b/pyload/plugins/Plugin.py
index 18f0bc940..c59d64911 100644
--- a/pyload/plugins/Plugin.py
+++ b/pyload/plugins/Plugin.py
@@ -341,9 +341,8 @@ class Plugin(Base):
status = pyfile.status
pyfile.setStatus("waiting")
- self.logDebug("WAIT: %d seconds" % seconds,
- "WAITUNTIL: %f" % pyfile.waitUntil,
- "RECONNECT: %s" % self.wantReconnect)
+ self.logInfo(_("Wait: %d seconds") % pyfile.waitUntil - time(),
+ _("Reconnect: %s") % self.wantReconnect)
if self.account:
self.logDebug("Ignore reconnection due account logged")
@@ -351,6 +350,8 @@ class Plugin(Base):
while pyfile.waitUntil > time():
if pyfile.abort:
self.abort()
+
+ sleep(1)
else:
while pyfile.waitUntil > time():
self.thread.m.reconnecting.wait(2)
@@ -363,6 +364,8 @@ class Plugin(Base):
self.wantReconnect = False
raise Reconnect
+ sleep(1)
+
self.waiting = False
pyfile.status = status