This commit is contained in:
Kovid Goyal 2014-11-16 19:16:10 +05:30
parent f5bff92ac4
commit 02078028bc

View File

@ -978,7 +978,7 @@ class libiMobileDevice():
if error:
self._log_error(" ERROR: {0} handle:{1}".format(self._afc_error(error), handle.value))
return False
elif bytes_written.value == 0:
elif bytes_written.value <= 0:
self._log_error(" ERROR: writing {0:,} bytes, 0 bytes written, handle:{1}".format(bytes_remaining, handle.value))
return False
else: