mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Prevent the smartdevice driver from hammering on MacOS when sending files.
This commit is contained in:
parent
7eddccd15f
commit
5b24605eba
@ -380,6 +380,7 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
|
|||||||
self._debug('socket error', e, e.errno)
|
self._debug('socket error', e, e.errno)
|
||||||
if e.args[0] != EAGAIN and e.args[0] != EINTR:
|
if e.args[0] != EAGAIN and e.args[0] != EINTR:
|
||||||
raise
|
raise
|
||||||
|
time.sleep(0.1) # lets not hammer the OS too hard
|
||||||
|
|
||||||
def _call_client(self, op, arg, print_debug_info=True):
|
def _call_client(self, op, arg, print_debug_info=True):
|
||||||
if op != 'NOOP':
|
if op != 'NOOP':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user