Fix assert in websocket

fixes #1931
This commit is contained in:
Richard Hodges
2020-05-01 16:56:15 +02:00
parent 379cbefc39
commit 0cc3acdb83
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,7 @@
* Fix assert in websocket
--------------------------------------------------------------------------------
Version 292:
* Fix compile errors on Visual Studio with /std:c++latest

View File

@ -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);