mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-03 12:46:51 -05:00
make sure to also remove event listeners from the toAdd queue
This commit is contained in:
parent
de8f48ea7a
commit
40f36bbeb8
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue