Tidy up calls to post()

This commit is contained in:
Vinnie Falco
2018-03-04 13:19:17 -08:00
parent 2fd3e46b20
commit 5eaa2be85e
11 changed files with 37 additions and 50 deletions
-3
View File
@@ -140,7 +140,6 @@ operator()()
{
BOOST_ASSERT(! f.invoked);
return boost::asio::post(
s_.get_executor(),
bind_handler(std::move(*this), ec, 0));
}
if(f.invoked)
@@ -153,7 +152,6 @@ operator()()
BOOST_ASSERT(sr_.is_done());
}
return boost::asio::post(
s_.get_executor(),
bind_handler(std::move(*this), ec, 0));
}
@@ -284,7 +282,6 @@ operator()(
{
state_ = 1;
return boost::asio::post(
s_.get_executor(),
bind_handler(std::move(*this), ec, 0));
}
state_ = 2;