summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2024-09-18 18:34:03 +0200
committerGravatar Nikias Bassen2024-09-18 18:34:03 +0200
commitf5d73075e00510394173299c6c328bafe8958cef (patch)
tree6908c98b0f7002ca6149689908c0e916d87ea95b /src
parent7df9e9e43bb116ad963024f9fb1735a6b24b6806 (diff)
downloadidevicerestore-f5d73075e00510394173299c6c328bafe8958cef.tar.gz
idevicerestore-f5d73075e00510394173299c6c328bafe8958cef.tar.bz2
restore: Make sure to error out when async data request handler can't be started
When passing --ignore-errors, it would not fail when the async data request handler thread cannot be started, and might end up waiting forever for something to happen.
Diffstat (limited to 'src')
-rw-r--r--src/restore.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/restore.c b/src/restore.c
index 2b1ad3e..d836470 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -5152,6 +5152,9 @@ int restore_device(struct idevicerestore_client_t* client, plist_t build_identit
free(args);
error("ERROR: Failed to start async data request handler thread!\n");
err = -1;
+ if (client->flags & FLAG_IGNORE_ERRORS) {
+ client->flags &= ~FLAG_IGNORE_ERRORS;
+ }
} else {
thread_detach(t);
}