summaryrefslogtreecommitdiffstats
path: root/module/database
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-12-13 23:22:08 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-12-13 23:22:08 +0100
commitf9f25e064678eeaa96d91d3af7b543334b24bc4c (patch)
tree8c056fb5442377aa541ec2ff15f0c44e37e54f6b /module/database
parentmissing files added (diff)
downloadpyload-f9f25e064678eeaa96d91d3af7b543334b24bc4c.tar.xz
little fix
Diffstat (limited to 'module/database')
-rw-r--r--module/database/FileDatabase.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/database/FileDatabase.py b/module/database/FileDatabase.py
index f1c917b0a..90e6ee758 100644
--- a/module/database/FileDatabase.py
+++ b/module/database/FileDatabase.py
@@ -151,13 +151,13 @@ class FileHandler:
"""delete package and all contained links"""
p = self.getPackage(id)
- oldorder = p.order
- queue = p.queue
-
if not p:
if id in self.packageCache: del self.packageCache[id]
return
+ oldorder = p.order
+ queue = p.queue
+
e = RemoveEvent("pack", id, "collector" if not p.queue else "queue")
pyfiles = self.cache.values()