mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Run windows_repair using atexit
Makes it even more likely the parent process quits before the restore process starts restoring.
This commit is contained in:
parent
9a2d3e6d9f
commit
ecb617366d
@ -336,7 +336,8 @@ class GuiRunner(QObject):
|
||||
# On some windows systems the existing db file gets locked
|
||||
# by something when running restore from the main process.
|
||||
# So run the restore in a separate process.
|
||||
windows_repair(self.library_path)
|
||||
import atexit
|
||||
atexit.register(windows_repair, self.library_path)
|
||||
self.app.quit()
|
||||
return
|
||||
if repair_library(self.library_path):
|
||||
|
Loading…
x
Reference in New Issue
Block a user