diff --git a/websocketpp/impl/connection_impl.hpp b/websocketpp/impl/connection_impl.hpp index c8ff46916b..7492a8b998 100644 --- a/websocketpp/impl/connection_impl.hpp +++ b/websocketpp/impl/connection_impl.hpp @@ -932,7 +932,7 @@ void connection::handle_read_frame(lib::error_code const & ec, return; } else { lib::error_code close_ec; - this->close(processor::error::to_ws(ec),ec.message(),close_ec); + this->close(processor::error::to_ws(consume_ec),consume_ec.message(),close_ec); if (close_ec) { m_elog.write(log::elevel::fatal,