fix bug that caused all error close frames to have a blank code

This commit is contained in:
Peter Thorson
2014-02-10 09:17:43 -06:00
parent 81e0c44b34
commit 7c08cae15b

View File

@@ -932,7 +932,7 @@ void connection<config>::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,