From a5234f26e4b7146ae7c2df25950f0177534cd643 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 16 Dec 2024 15:58:19 +0000 Subject: core: drop using deques in favor of vectors No point in most of these. --- src/managers/EventManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/managers/EventManager.cpp') diff --git a/src/managers/EventManager.cpp b/src/managers/EventManager.cpp index 786468f2..fc55b472 100644 --- a/src/managers/EventManager.cpp +++ b/src/managers/EventManager.cpp @@ -116,7 +116,7 @@ int CEventManager::onClientEvent(int fd, uint32_t mask) { if (write(CLIENTIT->fd, event->c_str(), event->length()) < 0) break; - CLIENTIT->events.pop_front(); + CLIENTIT->events.erase(CLIENTIT->events.begin()); } // stop polling when we sent all events -- cgit v1.2.3