From 95bc649fc109bac68e4e29bf5262c35c61409f73 Mon Sep 17 00:00:00 2001 From: emeric Date: Sun, 14 Sep 2025 13:20:43 +0200 Subject: [PATCH] Fixed assert/potential bug when aborting podcast sync while being throttled --- src/libs/core/impl/http/SendQueue.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/core/impl/http/SendQueue.cpp b/src/libs/core/impl/http/SendQueue.cpp index bdbe8931..b2b1a35a 100644 --- a/src/libs/core/impl/http/SendQueue.cpp +++ b/src/libs/core/impl/http/SendQueue.cpp @@ -313,7 +313,7 @@ namespace lms::core::http LOG(DEBUG, "Throttling for " << duration.count() << " seconds"); _throttleTimer.expires_after(duration); - _throttleTimer.async_wait([this](const boost::system::error_code& ec) { + _throttleTimer.async_wait(boost::asio::bind_executor(_strand, [this](const boost::system::error_code& ec) { if (ec == boost::asio::error::operation_aborted) LOG(DEBUG, "Throttle aborted"); else if (ec) @@ -322,7 +322,7 @@ namespace lms::core::http setState(State::Idle); if (!ec) sendNextQueuedRequest(); - }); + })); setState(State::Throttled); }