From ecfd3fcbe4dd04b6074f46383526aa975fe8ed4b Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 13 Aug 2009 12:06:08 +0200 Subject: little fixes --- module/thread_list.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'module/thread_list.py') 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) -- cgit v1.2.3