mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-04 03:35:19 +02:00
When stops and unloads self module, make sure that the thread is properly deleted.
This commit is contained in:
@@ -2362,7 +2362,7 @@ void __KernelReturnFromModuleFunc()
|
||||
{
|
||||
if (module->nm.status == MODULE_STATUS_UNLOADING) {
|
||||
// TODO: Maybe should maintain the exitCode?
|
||||
sceKernelDeleteThread(it->threadID);
|
||||
sceKernelTerminateDeleteThread(it->threadID);
|
||||
} else {
|
||||
if (it->statusPtr != 0)
|
||||
Memory::Write_U32(exitStatus, it->statusPtr);
|
||||
|
||||
Reference in New Issue
Block a user