From f5d73075e00510394173299c6c328bafe8958cef Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 18 Sep 2024 18:34:03 +0200 Subject: 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. --- src/restore.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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); } -- cgit v1.1-32-gdbae