mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
If the user closes calibre while connected to a wireless device, cleanly disconnect and flush the metadata cache.
This commit is contained in:
parent
7bf63b3290
commit
7ee3a1703d
@ -1779,6 +1779,7 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
|
||||
|
||||
@synchronous('sync_lock')
|
||||
def shutdown(self):
|
||||
self._close_device_socket()
|
||||
if getattr(self, 'listen_socket', None) is not None:
|
||||
self.connection_listener.stop()
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user