mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Cleanup overseers explicitly on exit so that their __del__ method doesnt delay shutdown
This commit is contained in:
parent
b7c92f3498
commit
1c2ca981d8
@ -1183,10 +1183,13 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{
|
||||
self.hide_windows()
|
||||
if self._spare_pool is not None:
|
||||
self._spare_pool.shutdown()
|
||||
from calibre.scraper.simple import cleanup_overseers
|
||||
wait_for_cleanup = cleanup_overseers()
|
||||
from calibre.db.delete_service import shutdown
|
||||
shutdown()
|
||||
time.sleep(2)
|
||||
self.istores.join()
|
||||
wait_for_cleanup()
|
||||
return True
|
||||
|
||||
def run_wizard(self, *args):
|
||||
|
Loading…
x
Reference in New Issue
Block a user