diff --git a/src/Server.cc b/src/Server.cc index dfc83594..2ae92b6c 100644 --- a/src/Server.cc +++ b/src/Server.cc @@ -53,6 +53,7 @@ void Server::disconnect_client(shared_ptr c) { // callback after the current event. This will also call the client's // disconnect hooks (if any). this->clients_to_destroy.insert(move(c)); + this->enqueue_destroy_clients(); } void Server::enqueue_destroy_clients() {