make sure to also remove event listeners from the toAdd queue

This commit is contained in:
hjfod 2023-04-20 11:24:45 +03:00
parent de8f48ea7a
commit 40f36bbeb8

View file

@ -21,6 +21,7 @@ void DefaultEventListenerPool::remove(EventListenerProtocol* listener) {
m_listeners[i] = nullptr; m_listeners[i] = nullptr;
} }
} }
ranges::remove(m_toAdd, listener);
} }
ListenerResult DefaultEventListenerPool::handle(Event* event) { ListenerResult DefaultEventListenerPool::handle(Event* event) {