Thread
:
calibre 5: Beta testers needed
View Single Post
09-18-2020, 08:40 PM
#
427
kovidgoyal
creator of calibre
Posts: 45,455
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
And looking at the code, there is indeed such. The various calls to db.prefs.set are not protected by the lock. Doing them like this should eliminate the issue:
Code:
with db.new_api.write_lock: db.prefs.set
Last edited by kovidgoyal; 09-18-2020 at
09:02 PM
.
kovidgoyal
View Public Profile
Visit kovidgoyal's homepage!
Find More Posts by kovidgoyal
Track Posts by kovidgoyal via RSS