Tidy up calls to post()

This commit is contained in:
Vinnie Falco committed 2018-03-04 13:19:17 -08:00
1 parent 2fd3e46b20
commit 5eaa2be85e
11 files changed
+37 -50

No files matched your search

+1 -3
View File
@@ -135,7 +135,6 @@ operator()(error_code ec, std::size_t)
{
BOOST_ASIO_CORO_YIELD
boost::asio::post(
d.ws.get_executor(),
bind_handler(std::move(*this), ec));
goto upcall;
}
@@ -151,8 +150,7 @@ operator()(error_code ec, std::size_t)
// Resume
BOOST_ASIO_CORO_YIELD
boost::asio::post(
d.ws.get_executor(), std::move(*this));
boost::asio::post(std::move(*this));
BOOST_ASSERT(d.ws.wr_block_.is_locked(this));
// Make sure the stream is open