summaryrefslogtreecommitdiffstats
path: root/src/Event.cpp
diff options
context:
space:
mode:
authorElisey Puzko <puzko.e02@gmail.com>2018-02-18 11:25:30 +0100
committerElisey Puzko <puzko.e02@gmail.com>2018-02-18 11:25:30 +0100
commit9f911204d2a8295a669b0741a5076f55a0dd9cc5 (patch)
tree59d39747281f4de5d643ab8843c235f557077433 /src/Event.cpp
parentRaycast debug render (diff)
downloadAltCraft-9f911204d2a8295a669b0741a5076f55a0dd9cc5.tar
AltCraft-9f911204d2a8295a669b0741a5076f55a0dd9cc5.tar.gz
AltCraft-9f911204d2a8295a669b0741a5076f55a0dd9cc5.tar.bz2
AltCraft-9f911204d2a8295a669b0741a5076f55a0dd9cc5.tar.lz
AltCraft-9f911204d2a8295a669b0741a5076f55a0dd9cc5.tar.xz
AltCraft-9f911204d2a8295a669b0741a5076f55a0dd9cc5.tar.zst
AltCraft-9f911204d2a8295a669b0741a5076f55a0dd9cc5.zip
Diffstat (limited to 'src/Event.cpp')
-rw-r--r--src/Event.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Event.cpp b/src/Event.cpp
index 08c9ee7..5c126bb 100644
--- a/src/Event.cpp
+++ b/src/Event.cpp
@@ -57,6 +57,7 @@ void EventListener::PollEvents() {
std::lock_guard<std::recursive_mutex> rawLock (rawEventsMutex);
if (rawEvents.empty())
return;
+
std::lock_guard<std::recursive_mutex> eventsLock (eventsMutex);
std::lock_guard<std::recursive_mutex> handlersLock (handlersMutex);
while (!rawEvents.empty()) {