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()
|
self.hide_windows()
|
||||||
if self._spare_pool is not None:
|
if self._spare_pool is not None:
|
||||||
self._spare_pool.shutdown()
|
self._spare_pool.shutdown()
|
||||||
|
from calibre.scraper.simple import cleanup_overseers
|
||||||
|
wait_for_cleanup = cleanup_overseers()
|
||||||
from calibre.db.delete_service import shutdown
|
from calibre.db.delete_service import shutdown
|
||||||
shutdown()
|
shutdown()
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
self.istores.join()
|
self.istores.join()
|
||||||
|
wait_for_cleanup()
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def run_wizard(self, *args):
|
def run_wizard(self, *args):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user