mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 05:08:55 +02:00
Prevent the smartdevice driver from hammering on MacOS when sending files.
This commit is contained in:
parent
7eddccd15f
commit
5b24605eba
1 changed files with 1 additions and 0 deletions
|
|
@ -380,6 +380,7 @@ def _send_byte_string(self, s):
|
|||
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':
|
||||
|
|
|
|||
Loading…
Reference in a new issue