summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/prserv/db.py2
-rw-r--r--bitbake/lib/prserv/serv.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/prserv/db.py b/bitbake/lib/prserv/db.py
index 437958013d..36c9f7b630 100644
--- a/bitbake/lib/prserv/db.py
+++ b/bitbake/lib/prserv/db.py
@@ -248,7 +248,7 @@ class PRData(object):
248 self.connection.execute("PRAGMA journal_mode = WAL;") 248 self.connection.execute("PRAGMA journal_mode = WAL;")
249 self._tables={} 249 self._tables={}
250 250
251 def __del__(self): 251 def disconnect(self):
252 self.connection.close() 252 self.connection.close()
253 253
254 def __getitem__(self,tblname): 254 def __getitem__(self,tblname):
diff --git a/bitbake/lib/prserv/serv.py b/bitbake/lib/prserv/serv.py
index 3cb2e03dad..c557837b83 100644
--- a/bitbake/lib/prserv/serv.py
+++ b/bitbake/lib/prserv/serv.py
@@ -148,7 +148,7 @@ class PRServer(SimpleXMLRPCServer):
148 while not self.quit: 148 while not self.quit:
149 self.handle_request() 149 self.handle_request()
150 self.handlerthread.join() 150 self.handlerthread.join()
151 self.table.sync() 151 self.db.disconnect()
152 logger.info("PRServer: stopping...") 152 logger.info("PRServer: stopping...")
153 self.server_close() 153 self.server_close()
154 return 154 return