diff --git a/examples/chat_client/chat_client.cpp b/examples/chat_client/chat_client.cpp index 115b4a3c7c..5eaaa38964 100644 --- a/examples/chat_client/chat_client.cpp +++ b/examples/chat_client/chat_client.cpp @@ -52,8 +52,8 @@ int main(int argc, char* argv[]) { try { chat_client_handler_ptr handler(new chat_client_handler()); - client::connection_ptr con; client endpoint(handler); + client::connection_ptr con; endpoint.alog().unset_level(websocketpp::log::alevel::ALL); endpoint.elog().unset_level(websocketpp::log::elevel::ALL);