summaryrefslogtreecommitdiffstats
path: root/tools/idevicebackup.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-07-23 16:22:06 +0200
committerGravatar Martin Szulecki2010-07-23 16:22:06 +0200
commitad5c8619625384bf825119a7bd88433806e0576d (patch)
treea9e591d72468a8d0272318cf9fbe5145ad9f0c32 /tools/idevicebackup.c
parentd6a90271a5c3de7f2be9925d709a57089cc30f41 (diff)
downloadlibimobiledevice-ad5c8619625384bf825119a7bd88433806e0576d.tar.gz
libimobiledevice-ad5c8619625384bf825119a7bd88433806e0576d.tar.bz2
idevicebackup: Make sure we can quit while waiting for device to send data
Diffstat (limited to 'tools/idevicebackup.c')
-rw-r--r--tools/idevicebackup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/idevicebackup.c b/tools/idevicebackup.c
index c0b1645..b8e39bb 100644
--- a/tools/idevicebackup.c
+++ b/tools/idevicebackup.c
@@ -950,7 +950,7 @@ int main(int argc, char *argv[])
950 if (!message) { 950 if (!message) {
951 printf("Device is not ready yet. Going to try again in 2 seconds...\n"); 951 printf("Device is not ready yet. Going to try again in 2 seconds...\n");
952 sleep(2); 952 sleep(2);
953 continue; 953 goto files_out;
954 } 954 }
955 955
956 node = plist_array_get_item(message, 0); 956 node = plist_array_get_item(message, 0);
@@ -1078,7 +1078,7 @@ int main(int argc, char *argv[])
1078 /* reset hunk_index */ 1078 /* reset hunk_index */
1079 hunk_index = 0; 1079 hunk_index = 0;
1080 } 1080 }
1081 1081files_out:
1082 if (quit_flag > 0) { 1082 if (quit_flag > 0) {
1083 /* need to cancel the backup here */ 1083 /* need to cancel the backup here */
1084 mobilebackup_send_error(mobilebackup, "Cancelling DLSendFile"); 1084 mobilebackup_send_error(mobilebackup, "Cancelling DLSendFile");