Fix moved-from executor in idle ping timeout

fix #1599
This commit is contained in:
Vinnie Falco committed 2019-05-04 18:47:44 -07:00
1 parent 6be11913a0
commit 77f3bb0764
2 files changed
+3 -1

No files matched your search

+2 -1
View File
@@ -176,7 +176,8 @@ public:
impl.op_idle_ping.emplace(std::move(*this));
impl.wr_block.lock(this);
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));
}
if(impl.check_stop_now(ec))