This commit is contained in:
Nick Chan committed 2023-01-27 22:06:43 +08:00
1 parent c9537d7a46
commit e196349b2f
1 file changed
+4 -3
+4 -3
View File
@@ -95,10 +95,10 @@ int main(int argc, char *argv[]) {
pthread_create(&dfuhelper_thread, NULL, dfuhelper, NULL); pthread_create(&dfuhelper_thread, NULL, dfuhelper, NULL);
pthread_join(dfuhelper_thread, NULL); pthread_join(dfuhelper_thread, NULL);
if (dfuhelper_only) if (dfuhelper_only)
return 0; goto normal_exit;
exec_checkra1n(); exec_checkra1n();
if (pongo_exit) if (pongo_exit || demote)
return 0; goto normal_exit;
pongo: pongo:
spin = true; spin = true;
if (do_pongo_sleep) if (do_pongo_sleep)
@@ -110,6 +110,7 @@ pongo:
{ {
sleep(1); sleep(1);
} }
normal_exit:
if (access("/usr/bin/curl", F_OK) == 0 && ohio) { if (access("/usr/bin/curl", F_OK) == 0 && ohio) {
LOG(LOG_VERBOSE4, "Ohio"); LOG(LOG_VERBOSE4, "Ohio");
char* ohio_argv[] = { char* ohio_argv[] = {