summaryrefslogtreecommitdiffstats
path: root/module/thread_list.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/thread_list.py')
-rw-r--r--module/thread_list.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/module/thread_list.py b/module/thread_list.py
index 18e445209..3691c9f5e 100644
--- a/module/thread_list.py
+++ b/module/thread_list.py
@@ -87,15 +87,15 @@ class Thread_List(object):
"""manage completing download"""
self.lock.acquire()
- if pyfile.plugin.req.curl:
+ if not pyfile.plugin.multi_dl:
+ self.occ_plugins.remove(pyfile.modul.__name__)
+
+ if pyfile.plugin.req.curl and not pyfile.status == "reconnected":
try:
pyfile.plugin.req.pycurl.close()
except:
pass
- if not pyfile.plugin.multi_dl:
- self.occ_plugins.remove(pyfile.modul.__name__)
-
self.py_downloading.remove(pyfile)
if pyfile.status.type == "finished":
@@ -106,6 +106,7 @@ class Thread_List(object):
if pyfile.plugin.props['type'] == "container":
self.list.extend(pyfile.plugin.links)
+
elif pyfile.status.type == "reconnected":#put it back in queque
self.list.files.insert(0, pyfile)