If the user closes calibre while connected to a wireless device, cleanly disconnect and flush the metadata cache.

This commit is contained in:
Charles Haley 2014-03-16 15:56:40 +01:00
parent 7bf63b3290
commit 7ee3a1703d

View File

@ -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: