diff options
author | Martin Szulecki | 2010-07-23 16:22:06 +0200 |
---|---|---|
committer | Martin Szulecki | 2010-10-04 00:29:31 +0200 |
commit | be1d4c5b769b430bbcba054436957912666ea5cd (patch) | |
tree | a988d3491e10f94425fcbebfb9cd3e308199ba95 | |
parent | 23fd94e78dd93ce4a667515c5096f5d7cac93258 (diff) | |
download | libimobiledevice-be1d4c5b769b430bbcba054436957912666ea5cd.tar.gz libimobiledevice-be1d4c5b769b430bbcba054436957912666ea5cd.tar.bz2 |
idevicebackup: Make sure we can quit while waiting for device to send data
-rw-r--r-- | tools/idevicebackup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/idevicebackup.c b/tools/idevicebackup.c index 9ac01a8..2d80cf4 100644 --- a/tools/idevicebackup.c +++ b/tools/idevicebackup.c @@ -685,7 +685,7 @@ int main(int argc, char *argv[]) if (!message) { printf("Device is not ready yet. Going to try again in 2 seconds...\n"); sleep(2); - continue; + goto files_out; } node = plist_array_get_item(message, 0); @@ -813,7 +813,7 @@ int main(int argc, char *argv[]) /* reset hunk_index */ hunk_index = 0; } - +files_out: if (quit_flag > 0) { /* need to cancel the backup here */ mobilebackup_send_error(mobilebackup, "Cancelling DLSendFile"); |