summaryrefslogtreecommitdiffstats
path: root/module/FileDatabase.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-08 23:00:43 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-08 23:00:43 +0200
commit8561c9fc7973964706c2ce4949e0bc0e5bc43093 (patch)
treee67db5d0c8707d64d92abbe9c7195591af6b8b6b /module/FileDatabase.py
parentmulti home fix (diff)
downloadpyload-8561c9fc7973964706c2ce4949e0bc0e5bc43093.tar.xz
MU link checker
Diffstat (limited to 'module/FileDatabase.py')
-rw-r--r--module/FileDatabase.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/FileDatabase.py b/module/FileDatabase.py
index 98d75d58e..3ede67a98 100644
--- a/module/FileDatabase.py
+++ b/module/FileDatabase.py
@@ -163,9 +163,6 @@ class FileHandler:
p = self.getPackage(id)
e = RemoveEvent("pack", id, "collector" if not p.queue else "queue")
- if self.packageCache.has_key(id):
- del self.packageCache[id]
-
pyfiles = self.cache.values()
for pyfile in pyfiles:
@@ -176,6 +173,9 @@ class FileHandler:
self.db.deletePackage(p)
self.core.pullManager.addEvent(e)
+ if self.packageCache.has_key(id):
+ del self.packageCache[id]
+
self.lock.release()
#----------------------------------------------------------------------