mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
a9f1260021
commit
54ab4e3863
@ -1298,20 +1298,19 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{
|
|||||||
self.library_view.model().close()
|
self.library_view.model().close()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
try:
|
if self.content_server is not None:
|
||||||
if self.content_server is not None:
|
# If the Content server has any sockets being closed then
|
||||||
# If the Content server has any sockets being closed then
|
# this can take quite a long time (minutes). Tell the user that it is
|
||||||
# this can take quite a long time (minutes). Tell the user that it is
|
# happening.
|
||||||
# happening.
|
self.show_shutdown_message(
|
||||||
self.show_shutdown_message(
|
_('Shutting down the Content server. This could take a while...'))
|
||||||
_('Shutting down the Content server. This could take a while...'))
|
s = self.content_server
|
||||||
s = self.content_server
|
self.content_server = None
|
||||||
self.content_server = None
|
s.exit()
|
||||||
s.exit()
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
pass
|
pass
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user