fix some races on pongoOS devices

This commit is contained in:
Nick Chan committed 2024-09-21 19:49:16 +08:00
1 parent 2fbb899c60
commit 3a404501f7
2 files changed
+5

No files matched your search

+2
View File
@@ -148,6 +148,8 @@ int palera1n(int argc, char *argv[], char *envp[]) {
palerain_option_device_info)
) || device_has_booted)
goto normal_exit;
pthread_cancel(pongo_thread);
pthread_join(pongo_thread, NULL);
if (exec_checkra1n()) goto cleanup;
if ((palerain_flags & (palerain_option_pongo_exit | palerain_option_demote)))
+3
View File
@@ -42,6 +42,9 @@ void *pongo_usb_callback(stuff_t *arg) {
}
#endif
LOG(LOG_INFO, "Found PongoOS USB Device");
if (palerain_flags & palerain_option_pongo_exit)
goto done;
usb_device_handle_t handle = arg->handle;
#ifdef TUI
if (tui_is_jailbreaking) {