diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-08-13 12:06:08 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-08-13 12:06:08 +0200 |
commit | ecfd3fcbe4dd04b6074f46383526aa975fe8ed4b (patch) | |
tree | 26ab6beadd9bb0938754f0d38f9b6a487ed6ef35 /module/thread_list.py | |
parent | Added tag v0.1.1 for changeset cc58a87cd432 (diff) | |
download | pyload-ecfd3fcbe4dd04b6074f46383526aa975fe8ed4b.tar.xz |
little fixes
Diffstat (limited to 'module/thread_list.py')
-rw-r--r-- | module/thread_list.py | 9 |
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) |