diff options
Diffstat (limited to 'module/FileDatabase.py')
-rw-r--r-- | module/FileDatabase.py | 6 |
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() #---------------------------------------------------------------------- |