summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-13 20:59:49 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-13 20:59:49 +0200
commit42e93071a2825d2e2d8f7dba17a79a33bd9e4418 (patch)
tree82d3a0f24deec2b8e8986107f6a29e4a97c95faa
parenterniebs patches (diff)
downloadpyload-42e93071a2825d2e2d8f7dba17a79a33bd9e4418.tar.xz
forget sleep
-rw-r--r--module/PluginThread.py2
-rw-r--r--module/plugins/Plugin.py1
2 files changed, 3 insertions, 0 deletions
diff --git a/module/PluginThread.py b/module/PluginThread.py
index 4f138f858..84ddc6115 100644
--- a/module/PluginThread.py
+++ b/module/PluginThread.py
@@ -183,6 +183,8 @@ class DownloadThread(PluginThread):
except Retry:
+ #todo: ouput
+
self.m.log.info(_("Download restarted: %s") % pyfile.name)
self.queue.put(pyfile)
continue
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py
index 73ce808a6..0b47187e3 100644
--- a/module/plugins/Plugin.py
+++ b/module/plugins/Plugin.py
@@ -251,6 +251,7 @@ class Plugin(object):
t = time() + wait_time
while t > time() :
if self.pyfile.abort: raise Abort
+ sleep(0.25)
self.retries += 1
raise Retry(reason)