diff options
author | 2014-01-18 20:27:03 +0100 | |
---|---|---|
committer | 2014-01-18 20:27:03 +0100 | |
commit | c02a81a7bdee7628942d43add75b0a2131c87ba9 (patch) | |
tree | d090b16449105d06d617fa73b1bb3094febde89d /pyload/DownloadManager.py | |
parent | additional fix #2 (diff) | |
download | pyload-c02a81a7bdee7628942d43add75b0a2131c87ba9.tar.xz |
additional fix #3
Diffstat (limited to 'pyload/DownloadManager.py')
-rw-r--r-- | pyload/DownloadManager.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pyload/DownloadManager.py b/pyload/DownloadManager.py index 6345f9519..452be93e1 100644 --- a/pyload/DownloadManager.py +++ b/pyload/DownloadManager.py @@ -63,11 +63,13 @@ class DownloadManager: @lock def done(self, thread): """ Switch thread from working to free state """ - self.working.remove(thread) # only download threads will be re-used if isinstance(thread, DownloadThread): + self.working.remove(thread) self.free.append(thread) thread.isWorking.clear() + elif isinstance(thread, DecrypterThread): + self.decrypter.remove(thread) @lock def stop(self, thread): @@ -96,7 +98,8 @@ class DownloadManager: @lock def startDecrypterThread(self, info): """ Start decrypting of entered data, all links in one package are accumulated to one thread.""" - self.decrypter.append(DecrypterThread(self, [(info.download.plugin, info.download.url)], info.package)) + self.decrypter.append(DecrypterThread(self, [(info.download.plugin, info.download.url)], + info.fid, info.package, info.owner)) @read_lock def activeDownloads(self, uid=None): |