summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-07-09 16:59:36 +0200
committerGravatar Martin Szulecki2010-07-09 16:59:36 +0200
commit232e116e48612ffec0351704a431f4174544887e (patch)
tree47c27cd8dd9080aa4ccbe035df0a8921e72845b6 /src
parent77576d1848d6be1d73f0f860d6a4f350536f75bd (diff)
downloadidevicerestore-232e116e48612ffec0351704a431f4174544887e.tar.gz
idevicerestore-232e116e48612ffec0351704a431f4174544887e.tar.bz2
Correctly set QUIT flag during restore
Diffstat (limited to 'src')
-rw-r--r--src/restore.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/restore.c b/src/restore.c
index e4652bf..40b24d3 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -178,7 +178,7 @@ void restore_device_callback(const idevice_event_t* event, void* userdata) {
} else if (event->event == IDEVICE_DEVICE_REMOVE) {
restore_device_connected = 0;
- client->flags &= FLAG_QUIT;
+ client->flags |= FLAG_QUIT;
}
}
@@ -575,7 +575,7 @@ int restore_handle_data_request_msg(struct idevicerestore_client_t* client, idev
return -1;
}
} else {
- client->flags &= 1;
+ client->flags |= FLAG_QUIT;
}
} else {
@@ -667,7 +667,7 @@ int restore_device(struct idevicerestore_client_t* client, plist_t build_identit
// an unrecoverable error, so we need to bail.
if (error < 0) {
error("ERROR: Unable to successfully restore device\n");
- client->flags &= FLAG_QUIT;
+ client->flags |= FLAG_QUIT;
}
plist_free(message);