mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-30 10:35:20 -04:00
Cleanup overseers explicitly on exit so that their __del__ method doesnt delay shutdown
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user