From 02078028bc9d61dd473289b067f64135e0f979d1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 16 Nov 2014 19:16:10 +0530 Subject: [PATCH] ... --- src/calibre/devices/idevice/libimobiledevice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/devices/idevice/libimobiledevice.py b/src/calibre/devices/idevice/libimobiledevice.py index f375fbcc78..7f1439fee3 100644 --- a/src/calibre/devices/idevice/libimobiledevice.py +++ b/src/calibre/devices/idevice/libimobiledevice.py @@ -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: