From 850fe708738c071c5c54c09aac7321c18f8d886a Mon Sep 17 00:00:00 2001 From: eidheim Date: Thu, 10 Nov 2022 18:14:30 +0100 Subject: [PATCH] Changed callbacks type from std::vector with std::list in send_from_queue() --- server_http.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server_http.hpp b/server_http.hpp index 020c30e..1db0368 100644 --- a/server_http.hpp +++ b/server_http.hpp @@ -101,7 +101,7 @@ namespace SimpleWeb { } else { // All handlers in the queue is called with ec: - std::vector> callbacks; + std::list> callbacks; for(auto &pair : self->send_queue) { if(pair.second) callbacks.emplace_back(std::move(pair.second));