summaryrefslogtreecommitdiffstats
path: root/module/FileDatabase.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-25 12:11:09 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-25 12:11:09 +0200
commit8e9f093a9d74da03eca85f6ff2ee7239e8133cce (patch)
treebd71d25a43df275e2e1f6c0e70cf20cc22f3a70a /module/FileDatabase.py
parentslightly improved process call (diff)
downloadpyload-8e9f093a9d74da03eca85f6ff2ee7239e8133cce.tar.xz
more cleanup
Diffstat (limited to 'module/FileDatabase.py')
-rw-r--r--module/FileDatabase.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/module/FileDatabase.py b/module/FileDatabase.py
index cbb72b416..bf7b768fe 100644
--- a/module/FileDatabase.py
+++ b/module/FileDatabase.py
@@ -514,12 +514,15 @@ class FileDatabaseBackend(Thread):
self.c = self.conn.cursor()
#self.c.execute("PRAGMA synchronous = OFF")
self._createTables()
+ self.c.close()
while True:
try:
f, args, async = self.jobs.get()
if f == "quit": return True
+ self.c = self.conn.cursor()
res = f(*args)
+ self.c.close()
if not async: self.res.put(res)
except Exception, e:
#@TODO log etc