Changed callbacks type from std::vector with std::list in send_from_queue()
This commit is contained in:
parent
3e87ac5faf
commit
850fe70873
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ namespace SimpleWeb {
|
|||
}
|
||||
else {
|
||||
// All handlers in the queue is called with ec:
|
||||
std::vector<std::function<void(const error_code &)>> callbacks;
|
||||
std::list<std::function<void(const error_code &)>> callbacks;
|
||||
for(auto &pair : self->send_queue) {
|
||||
if(pair.second)
|
||||
callbacks.emplace_back(std::move(pair.second));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue