diff options
author | Lioncash <mathew1800@gmail.com> | 2020-05-02 20:07:29 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-05-02 20:07:31 +0200 |
commit | aabf5b205973dadfc21411bad0830231fb68d9d9 (patch) | |
tree | bdba5e1f78059ac9707056f53eafb0d33d286867 /src/core | |
parent | Merge pull request #3811 from ogniK5377/audin-init (diff) | |
download | yuzu-aabf5b205973dadfc21411bad0830231fb68d9d9.tar yuzu-aabf5b205973dadfc21411bad0830231fb68d9d9.tar.gz yuzu-aabf5b205973dadfc21411bad0830231fb68d9d9.tar.bz2 yuzu-aabf5b205973dadfc21411bad0830231fb68d9d9.tar.lz yuzu-aabf5b205973dadfc21411bad0830231fb68d9d9.tar.xz yuzu-aabf5b205973dadfc21411bad0830231fb68d9d9.tar.zst yuzu-aabf5b205973dadfc21411bad0830231fb68d9d9.zip |
Diffstat (limited to 'src/core')
-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() { |