Send the client a message when calibre ejects the device.

https://www.mobileread.com/forums/showthread.php?p=3993721
This commit is contained in:
Charles Haley 2020-05-28 19:45:59 +01:00
parent ec30a7d65f
commit 3526bf3d45

View File

@ -1456,6 +1456,7 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
@synchronous('sync_lock')
def eject(self):
self._debug()
self._call_client('NOOP', {'ejecting': True})
self._close_device_socket()
@synchronous('sync_lock')