adjust chat server/client for new connection_handler ifc

This commit is contained in:
Tobias Oberstein
2011-10-26 17:05:37 +02:00
parent 2c47fe17a4
commit cc08864401
4 changed files with 4 additions and 4 deletions

View File

@@ -59,7 +59,7 @@ void chat_server_handler::on_open(session_ptr client) {
send_to_all(encode_message("server",m_connections[client]+" has joined the chat."));
}
void chat_server_handler::on_close(session_ptr client,uint16_t status,const std::string &reason) {
void chat_server_handler::on_close(session_ptr client) {
std::map<session_ptr,std::string>::iterator it = m_connections.find(client);
if (it == m_connections.end()) {