diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/kernel/semaphore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/semaphore.cpp b/src/core/hle/kernel/semaphore.cpp index 331d32069..6f56da8a9 100644 --- a/src/core/hle/kernel/semaphore.cpp +++ b/src/core/hle/kernel/semaphore.cpp | |||
| @@ -34,7 +34,7 @@ public: | |||
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | ResultVal<bool> WaitSynchronization() override { | 36 | ResultVal<bool> WaitSynchronization() override { |
| 37 | bool wait = available_count == 0; | 37 | bool wait = !IsAvailable(); |
| 38 | 38 | ||
| 39 | if (wait) { | 39 | if (wait) { |
| 40 | Kernel::WaitCurrentThread(WAITTYPE_SEMA, GetHandle()); | 40 | Kernel::WaitCurrentThread(WAITTYPE_SEMA, GetHandle()); |