From 133153da2fbbaa29d971c13fa68642bf191e8563 Mon Sep 17 00:00:00 2001 From: Juan Eugenio Abadie Date: Tue, 26 Mar 2019 02:15:29 -0300 Subject: [PATCH] Avoid resetting unique_ptr not being the owner of the pointer --- Release/src/websockets/client/ws_client_wspp.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/Release/src/websockets/client/ws_client_wspp.cpp b/Release/src/websockets/client/ws_client_wspp.cpp index a46efb305c..547f5bbc0e 100644 --- a/Release/src/websockets/client/ws_client_wspp.cpp +++ b/Release/src/websockets/client/ws_client_wspp.cpp @@ -653,9 +653,6 @@ class wspp_callback_client : public websocket_client_callback_impl, m_thread.join(); } - // Delete client to make sure Websocketpp cleans up all Boost.Asio portions. - m_client.reset(); - if (connecting) { websocket_exception exc(ec, build_error_msg(ec, "set_fail_handler"));