diff --git a/lib/base/io-engine.cpp b/lib/base/io-engine.cpp index 423f9f7c2..9da8d1f54 100644 --- a/lib/base/io-engine.cpp +++ b/lib/base/io-engine.cpp @@ -123,8 +123,8 @@ void CpuBoundWork::Done() } // Again, a delayed wake-up is fine, hence unlocked. - for (auto& [strand, cv] : subscribers) { - boost::asio::post(strand, [cv = std::move(cv)] { cv->NotifyOne(); }); + for (auto& subscriber : subscribers) { + boost::asio::post(subscriber.first, [cv = std::move(subscriber.second)] { cv->NotifyOne(); }); } } }