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:
co-authored by
Claude Opus 5.5
parent
52e0270c80
commit
9ffe07ff48
+5
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user