diff options
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() |