v2.9.4: Absturz beim Beenden behoben (Hintergrund-Threads, die noch auf den Server warten)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Nico Meister
2026-10-18 22:47:36 +02:00
co-authored by Claude Opus 5.5
parent 52e0270c80
commit 9ffe07ff48
5 changed files with 29 additions and 12 deletions
+5 -3
View File
@@ -49,9 +49,11 @@ void admin_start(const char *server, u32 pid)
bool admin_is(void) { return isAdmin; }
void admin_finish(void)
bool admin_finish(void)
{
if (!thread) return;
if (R_SUCCEEDED(threadJoin(thread, 3ULL * 1000 * 1000 * 1000))) threadFree(thread);
if (!thread) return true;
if (R_FAILED(threadJoin(thread, 15ULL * 1000 * 1000 * 1000))) return false; // läuft noch
threadFree(thread);
thread = NULL;
return true;
}