diff options
-rw-r--r-- | src/GlobalEvents.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GlobalEvents.cxx b/src/GlobalEvents.cxx index 7c4ffdc16..202df39b6 100644 --- a/src/GlobalEvents.cxx +++ b/src/GlobalEvents.cxx @@ -109,6 +109,6 @@ GlobalEvents::Emit(Event event) assert((unsigned)event < MAX); const unsigned mask = 1u << unsigned(event); - if ((GlobalEvents::flags.fetch_or(mask) & mask) == 0) + if (GlobalEvents::flags.fetch_or(mask) == 0) wake_fd.Write(); } |