summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-05-02 20:07:29 +0200
committerLioncash <mathew1800@gmail.com>2020-05-02 20:07:31 +0200
commitaabf5b205973dadfc21411bad0830231fb68d9d9 (patch)
treebdba5e1f78059ac9707056f53eafb0d33d286867 /src
parentMerge pull request #3811 from ogniK5377/audin-init (diff)
downloadyuzu-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')
-rw-r--r--src/core/hle/kernel/readable_event.cpp10
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() {