From 3526bf3d45e5ccfc179a30630ca2b31e757ce911 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Thu, 28 May 2020 19:45:59 +0100 Subject: [PATCH] Send the client a message when calibre ejects the device. https://www.mobileread.com/forums/showthread.php?p=3993721 --- src/calibre/devices/smart_device_app/driver.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/devices/smart_device_app/driver.py b/src/calibre/devices/smart_device_app/driver.py index 2a9d1c07ec..d67d98c508 100644 --- a/src/calibre/devices/smart_device_app/driver.py +++ b/src/calibre/devices/smart_device_app/driver.py @@ -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')