diff options
Diffstat (limited to 'src/core/hle/kernel/synchronization.cpp')
| -rw-r--r-- | src/core/hle/kernel/synchronization.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/hle/kernel/synchronization.cpp b/src/core/hle/kernel/synchronization.cpp index a7e3fbe92..4323fc120 100644 --- a/src/core/hle/kernel/synchronization.cpp +++ b/src/core/hle/kernel/synchronization.cpp | |||
| @@ -59,7 +59,10 @@ std::pair<ResultCode, Handle> Synchronization::WaitFor( | |||
| 59 | return {RESULT_TIMEOUT, InvalidHandle}; | 59 | return {RESULT_TIMEOUT, InvalidHandle}; |
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | /// TODO(Blinkhawk): Check for termination pending | 62 | if (thread->IsPendingTermination()) { |
| 63 | lock.CancelSleep(); | ||
| 64 | return {ERR_THREAD_TERMINATING, InvalidHandle}; | ||
| 65 | } | ||
| 63 | 66 | ||
| 64 | if (thread->IsSyncCancelled()) { | 67 | if (thread->IsSyncCancelled()) { |
| 65 | thread->SetSyncCancelled(false); | 68 | thread->SetSyncCancelled(false); |