mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-21 01:37:02 +02:00
fix some races on pongoOS devices
This commit is contained in:
1 parent
2fbb899c60
commit
3a404501f7
2 files changed
+5
No files matched your search
@@ -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)))
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user