From 52ce31bea44279643b9e9102ef1ed0b60d146d35 Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Fri, 12 Oct 2012 06:36:23 -0500 Subject: [PATCH] updates the order of endpoint and handler construction #references 147 --- examples/chat_client/chat_client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);