Fix shutdown errors on macOS
This commit is contained in:
parent
b21719e2f2
commit
0531d47721
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ class Db(object):
|
||||||
self.log.debug("Created Db path: %s" % self.db_dir)
|
self.log.debug("Created Db path: %s" % self.db_dir)
|
||||||
if not os.path.isfile(self.db_path):
|
if not os.path.isfile(self.db_path):
|
||||||
self.log.debug("Db file not exist yet: %s" % self.db_path)
|
self.log.debug("Db file not exist yet: %s" % self.db_path)
|
||||||
self.conn = sqlite3.connect(self.db_path, isolation_level="DEFERRED")
|
self.conn = sqlite3.connect(self.db_path, isolation_level="DEFERRED", check_same_thread=False)
|
||||||
self.conn.row_factory = sqlite3.Row
|
self.conn.row_factory = sqlite3.Row
|
||||||
self.conn.set_progress_handler(self.progress, 5000000)
|
self.conn.set_progress_handler(self.progress, 5000000)
|
||||||
self.cur = self.getCursor()
|
self.cur = self.getCursor()
|
||||||
|
|
Loading…
Reference in a new issue