mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
oops forgot to protect set_namespaced()
This commit is contained in:
parent
06a665012b
commit
a6587b1f3d
@ -136,7 +136,9 @@ class ThreadSafePrefs(MutableMapping):
|
|||||||
return prefs.get_namespaced(namespace, key, default)
|
return prefs.get_namespaced(namespace, key, default)
|
||||||
|
|
||||||
def set_namespaced(self, namespace, key, val):
|
def set_namespaced(self, namespace, key, val):
|
||||||
prefs = self.db().backend.prefs
|
db = self.db()
|
||||||
|
with db.write_lock:
|
||||||
|
prefs = db.backend.prefs
|
||||||
return prefs.set_namespaced(namespace, key, val)
|
return prefs.set_namespaced(namespace, key, val)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user