diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-09 13:05:38 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-09 13:05:38 +0200 |
commit | 63d747c7c9ff2d6753cee22faa18d14f7d148428 (patch) | |
tree | 1ea729a1feeb0f3f38e806404e69b04b21e49bf4 /module/FileDatabase.py | |
parent | merge (diff) | |
download | pyload-63d747c7c9ff2d6753cee22faa18d14f7d148428.tar.xz |
netload premium
Diffstat (limited to 'module/FileDatabase.py')
-rw-r--r-- | module/FileDatabase.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/module/FileDatabase.py b/module/FileDatabase.py index 3ede67a98..62f42917e 100644 --- a/module/FileDatabase.py +++ b/module/FileDatabase.py @@ -188,9 +188,12 @@ class FileHandler: f = self.getFile(id) e = RemoveEvent("file", id, "collector" if not f.package().queue else "queue") + + if id in self.core.threadManager.processingIds(): + self.cache[id].abortDownload() + if self.cache.has_key(id): - if id in self.core.threadManager.processingIds(): - self.cache[id].abortDownload() + del self.cache[id] self.lock.release() |