mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Also use lock when initializing db manager
This commit is contained in:
parent
05bc7e966e
commit
3bbbe6257b
@ -56,6 +56,7 @@ class Database:
|
|||||||
self.dbpath = path
|
self.dbpath = path
|
||||||
self.needs_copy = True
|
self.needs_copy = True
|
||||||
self.use_row_factory = True
|
self.use_row_factory = True
|
||||||
|
with kobo_db_lock:
|
||||||
try:
|
try:
|
||||||
connect()
|
connect()
|
||||||
self.needs_copy = False
|
self.needs_copy = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user