diff --git a/CHANGELOG.md b/CHANGELOG.md index a657bbfb..b26a39d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +* Fix assert in websocket + +-------------------------------------------------------------------------------- + Version 292: * Fix compile errors on Visual Studio with /std:c++latest diff --git a/include/boost/beast/websocket/impl/read.hpp b/include/boost/beast/websocket/impl/read.hpp index 5087cf54..9d788be1 100644 --- a/include/boost/beast/websocket/impl/read.hpp +++ b/include/boost/beast/websocket/impl/read.hpp @@ -108,8 +108,7 @@ public: net::post(std::move(*this)); BOOST_ASSERT(impl.rd_block.is_locked(this)); - // VFALCO Is this check correct here? - BOOST_ASSERT(! ec && impl.check_stop_now(ec)); + BOOST_ASSERT(!ec); if(impl.check_stop_now(ec)) { BOOST_ASSERT(ec == net::error::operation_aborted);