diff options
| author | wwylele <wwylele@gmail.com> | 2016-12-17 13:08:38 +0200 |
|---|---|---|
| committer | wwylele <wwylele@gmail.com> | 2016-12-17 19:23:52 +0200 |
| commit | c62bc4e61630469bd608b2ceb1f79250d326cd86 (patch) | |
| tree | 61df2f8ed57ff935c1ac018a64f86d683df45c1e /src/core/hle/svc.cpp | |
| parent | 5095e23921106aac11157b6819cd413da10eb8a3 (diff) | |
Thread: remove the thread from the thread list when exiting
Diffstat (limited to 'src/core/hle/svc.cpp')
| -rw-r--r-- | src/core/hle/svc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index ef25acc4ab..5839d72304 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp @@ -584,7 +584,7 @@ static ResultCode CreateThread(Handle* out_handle, s32 priority, u32 entry_point static void ExitThread() { LOG_TRACE(Kernel_SVC, "called, pc=0x%08X", Core::g_app_core->GetPC()); - Kernel::GetCurrentThread()->Stop(); + Kernel::ExitCurrentThread(); } /// Gets the priority for the specified thread |
