diff --git a/src/asio_client_session_impl.cc b/src/asio_client_session_impl.cc index 3be7b20d..4aeee74d 100644 --- a/src/asio_client_session_impl.cc +++ b/src/asio_client_session_impl.cc @@ -527,8 +527,9 @@ void session_impl::do_read() { if (ec) { if (!should_stop()) { call_error_cb(ec); - shutdown_socket(); } + shutdown_socket(); + return; }