Commit 0b63e3d2 authored by louiz’'s avatar louiz’

Fix the call of on_new_client

We insert the new client in the list before. Otherwise a call to
“send_to_all_clients” would not include it
parent 8255ed9f
......@@ -205,8 +205,8 @@ private:
log_error("handle_accept failed: " << error);
exit(1);
}
this->on_new_client(client);
this->clients.push_back(client);
this->on_new_client(client);
this->install_accept_handler();
client->start();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment