summaryrefslogtreecommitdiffstats
path: root/module/DatabaseBackend.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-02-06 12:05:26 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-02-06 12:05:26 +0100
commit392785e31a47adec0550bfeb51666fe92503f22d (patch)
tree8b87cc530c26f92c2cccebf67c857370e53687ef /module/DatabaseBackend.py
parentwebif dlc upload fix (diff)
downloadpyload-392785e31a47adec0550bfeb51666fe92503f22d.tar.xz
some fixes
Diffstat (limited to 'module/DatabaseBackend.py')
-rw-r--r--module/DatabaseBackend.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/DatabaseBackend.py b/module/DatabaseBackend.py
index ca4ab1e56..d74950855 100644
--- a/module/DatabaseBackend.py
+++ b/module/DatabaseBackend.py
@@ -126,6 +126,8 @@ class DatabaseBackend(Thread):
j = self.jobs.get()
self.transactionLock.acquire()
if j == "quit":
+ self.c.close()
+ self.conn.close()
self.transactionLock.release()
break
j.processJob()
@@ -139,7 +141,6 @@ class DatabaseBackend(Thread):
def shutdown(self):
self.conn.commit()
self.jobs.put("quit")
- self.conn.close()
def _checkVersion(self):
""" check db version and delete it if needed"""