Revert "Tidy up calls to post()"

This reverts commit 5eaa2be85e.
This commit is contained in:
Vinnie Falco committed 2018-03-22 20:13:39 -07:00
1 parent 4d660a5e54
commit 12cc10f8bb
11 files changed
+56 -31

No files matched your search

+5 -6
View File
@@ -321,7 +321,8 @@ operator()(
// Resume
BOOST_ASIO_CORO_YIELD
boost::asio::post(std::move(*this));
boost::asio::post(
ws_.get_executor(), std::move(*this));
BOOST_ASSERT(ws_.wr_block_.is_locked(this));
// Make sure the stream is open
@@ -568,11 +569,9 @@ operator()(
ws_.paused_rd_.maybe_invoke() ||
ws_.paused_ping_.maybe_invoke();
if(! cont_)
{
BOOST_ASIO_CORO_YIELD
boost::asio::post(
bind_handler(std::move(*this), ec));
}
return boost::asio::post(
ws_.stream_.get_executor(),
bind_handler(std::move(h_), ec, bytes_transferred_));
h_(ec, bytes_transferred_);
}
}