Prevent the smartdevice driver from hammering on MacOS when sending files.

This commit is contained in:
Charles Haley 2012-08-14 09:13:25 +02:00
parent 7eddccd15f
commit 5b24605eba

View File

@ -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':