From 77f3bb07649bef1761e6c598d48987c75903c614 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Sat, 4 May 2019 15:31:11 -0700 Subject: [PATCH] Fix moved-from executor in idle ping timeout fix #1599 --- CHANGELOG.md | 1 + include/boost/beast/websocket/impl/ping.hpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b7926953..0f02a099 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ Version 255: * Add idle ping suspend test +* Fix moved-from executor in idle ping timeout -------------------------------------------------------------------------------- diff --git a/include/boost/beast/websocket/impl/ping.hpp b/include/boost/beast/websocket/impl/ping.hpp index 350505c0..917cfc32 100644 --- a/include/boost/beast/websocket/impl/ping.hpp +++ b/include/boost/beast/websocket/impl/ping.hpp @@ -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))