mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-21 09:47:01 +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)
|
palerain_option_device_info)
|
||||||
) || device_has_booted)
|
) || device_has_booted)
|
||||||
goto normal_exit;
|
goto normal_exit;
|
||||||
|
pthread_cancel(pongo_thread);
|
||||||
|
pthread_join(pongo_thread, NULL);
|
||||||
if (exec_checkra1n()) goto cleanup;
|
if (exec_checkra1n()) goto cleanup;
|
||||||
|
|
||||||
if ((palerain_flags & (palerain_option_pongo_exit | palerain_option_demote)))
|
if ((palerain_flags & (palerain_option_pongo_exit | palerain_option_demote)))
|
||||||
|
|||||||
@@ -42,6 +42,9 @@ void *pongo_usb_callback(stuff_t *arg) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
LOG(LOG_INFO, "Found PongoOS USB Device");
|
LOG(LOG_INFO, "Found PongoOS USB Device");
|
||||||
|
if (palerain_flags & palerain_option_pongo_exit)
|
||||||
|
goto done;
|
||||||
|
|
||||||
usb_device_handle_t handle = arg->handle;
|
usb_device_handle_t handle = arg->handle;
|
||||||
#ifdef TUI
|
#ifdef TUI
|
||||||
if (tui_is_jailbreaking) {
|
if (tui_is_jailbreaking) {
|
||||||
|
|||||||
Reference in new issue
Block a user