From be1d4c5b769b430bbcba054436957912666ea5cd Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Fri, 23 Jul 2010 16:22:06 +0200 Subject: idevicebackup: Make sure we can quit while waiting for device to send data --- tools/idevicebackup.c | 4 ++-- 1 file 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"); -- cgit v1.1-32-gdbae