fix client object memory leak

This commit is contained in:
Martin Michelsen
2023-03-02 22:16:08 -08:00
parent f45516d359
commit 2c5f0ea904
+1
View File
@@ -53,6 +53,7 @@ void Server::disconnect_client(shared_ptr<Client> 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() {