Fix moved-from executor in idle ping timeout

fix #1599
This commit is contained in:
Vinnie Falco
2019-05-04 15:31:11 -07:00
parent 6be11913a0
commit 77f3bb0764
2 changed files with 3 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
Version 255: Version 255:
* Add idle ping suspend test * Add idle ping suspend test
* Fix moved-from executor in idle ping timeout
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------

View File

@@ -176,7 +176,8 @@ public:
impl.op_idle_ping.emplace(std::move(*this)); impl.op_idle_ping.emplace(std::move(*this));
impl.wr_block.lock(this); impl.wr_block.lock(this);
BOOST_ASIO_CORO_YIELD BOOST_ASIO_CORO_YIELD
net::post(this->get(), std::move(*this)); net::post(
this->get_executor(), std::move(*this));
BOOST_ASSERT(impl.wr_block.is_locked(this)); BOOST_ASSERT(impl.wr_block.is_locked(this));
} }
if(impl.check_stop_now(ec)) if(impl.check_stop_now(ec))