diff options
author | Martin Szulecki | 2010-07-09 16:59:36 +0200 |
---|---|---|
committer | Martin Szulecki | 2010-07-09 16:59:36 +0200 |
commit | 232e116e48612ffec0351704a431f4174544887e (patch) | |
tree | 47c27cd8dd9080aa4ccbe035df0a8921e72845b6 | |
parent | 77576d1848d6be1d73f0f860d6a4f350536f75bd (diff) | |
download | idevicerestore-232e116e48612ffec0351704a431f4174544887e.tar.gz idevicerestore-232e116e48612ffec0351704a431f4174544887e.tar.bz2 |
Correctly set QUIT flag during restore
-rw-r--r-- | src/restore.c | 6 |
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); |