Also use lock when initializing db manager

This commit is contained in:
Kovid Goyal 2025-03-11 11:35:07 +05:30
parent 05bc7e966e
commit 3bbbe6257b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -56,6 +56,7 @@ class Database:
self.dbpath = path
self.needs_copy = True
self.use_row_factory = True
with kobo_db_lock:
try:
connect()
self.needs_copy = False