From 7c08cae15bbafba406b297b4a69d698d3cbe948b Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Mon, 10 Feb 2014 09:17:43 -0600 Subject: [PATCH] fix bug that caused all error close frames to have a blank code --- websocketpp/impl/connection_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,