diff --git a/websocketpp/impl/connection_impl.hpp b/websocketpp/impl/connection_impl.hpp index 6ab7414af..02f5615a8 100644 --- a/websocketpp/impl/connection_impl.hpp +++ b/websocketpp/impl/connection_impl.hpp @@ -592,7 +592,7 @@ void connection::set_status(http::status_code::value code, std::string const & msg) { lib::error_code ec; - this->set_status(code, msg); + this->set_status(code, msg, ec); if (ec) { throw exception("Call to set_status from invalid state", ec); }