From 5b24605ebaddf0b275d22076a367d24eb3fb5094 Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Tue, 14 Aug 2012 09:13:25 +0200 Subject: [PATCH] Prevent the smartdevice driver from hammering on MacOS when sending files. --- 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 6f78582b15..ba6a959c0e 100644 --- a/src/calibre/devices/smart_device_app/driver.py +++ b/src/calibre/devices/smart_device_app/driver.py @@ -380,6 +380,7 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin): self._debug('socket error', e, e.errno) if e.args[0] != EAGAIN and e.args[0] != EINTR: raise + time.sleep(0.1) # lets not hammer the OS too hard def _call_client(self, op, arg, print_debug_info=True): if op != 'NOOP':