Reset receive params before killing
diff --git a/tools/idevicedebug.c b/tools/idevicedebug.c
index 67ef938..8bedc6f 100644
--- a/tools/idevicedebug.c
+++ b/tools/idevicedebug.c
@@ -511,6 +511,11 @@
dres = debugserver_client_receive_response(debugserver_client, &response, NULL);
}
+ /* ignore quit_flag after this point */
+ if (debugserver_client_set_receive_params(debugserver_client, NULL, 5000) != DEBUGSERVER_E_SUCCESS) {
+ fprintf(stderr, "Error in debugserver_client_set_receive_params\n");
+ goto cleanup;
+ }
/* kill process after we finished */
log_debug("Killing process...");