diff options
author | bunnei <bunneidev@gmail.com> | 2020-05-03 05:38:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-03 05:38:36 +0200 |
commit | 8db4feb5b46e8ff6b4e81270d162a8f9a13ff935 (patch) | |
tree | a601cb17a3677a5a166610bb7c63a0023e885e5e | |
parent | Merge pull request #3824 from ogniK5377/GetDisplayVersion (diff) | |
parent | readable_event: Remove unnecessary semicolon in Signal() (diff) | |
download | yuzu-8db4feb5b46e8ff6b4e81270d162a8f9a13ff935.tar yuzu-8db4feb5b46e8ff6b4e81270d162a8f9a13ff935.tar.gz yuzu-8db4feb5b46e8ff6b4e81270d162a8f9a13ff935.tar.bz2 yuzu-8db4feb5b46e8ff6b4e81270d162a8f9a13ff935.tar.lz yuzu-8db4feb5b46e8ff6b4e81270d162a8f9a13ff935.tar.xz yuzu-8db4feb5b46e8ff6b4e81270d162a8f9a13ff935.tar.zst yuzu-8db4feb5b46e8ff6b4e81270d162a8f9a13ff935.zip |
-rw-r--r-- | src/core/hle/kernel/readable_event.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/hle/kernel/readable_event.cpp b/src/core/hle/kernel/readable_event.cpp index e2a404d07..00860fcbd 100644 --- a/src/core/hle/kernel/readable_event.cpp +++ b/src/core/hle/kernel/readable_event.cpp @@ -24,10 +24,12 @@ void ReadableEvent::Acquire(Thread* thread) { } void ReadableEvent::Signal() { - if (!is_signaled) { - is_signaled = true; - SynchronizationObject::Signal(); - }; + if (is_signaled) { + return; + } + + is_signaled = true; + SynchronizationObject::Signal(); } void ReadableEvent::Clear() { |