Fixed bug with event notifier being notified with a bad eventfd

This commit is contained in:
Nav
2021-05-31 00:01:42 +01:00
parent 602328d9d1
commit 635f908a45
3 changed files with 27 additions and 11 deletions

View File

@@ -31,7 +31,7 @@ void EventListener::registerEvent(GenericEventPointer event) {
eventQueueByType[eventName].push(event);
this->eventQueueByEventTypeCV.notify_all();
if (this->interruptEventNotifier != nullptr) {
if (this->interruptEventNotifier != nullptr && this->interruptEventNotifier->isInitialised()) {
this->interruptEventNotifier->notify();
}
}