fix: support boost 1.87 (#5832)

Co-authored-by: Nerixyz <nerixdev@outlook.de>
This commit is contained in:
pajlada
2025-01-19 11:11:21 +01:00
committed by GitHub
parent b0fee11621
commit e92067b5de
8 changed files with 22 additions and 15 deletions
@@ -119,8 +119,9 @@ public:
void start()
{
this->work_ = std::make_shared<boost::asio::io_service::work>(
this->websocketClient_.get_io_service());
this->work_ = std::make_shared<boost::asio::executor_work_guard<
boost::asio::io_context::executor_type>>(
this->websocketClient_.get_io_service().get_executor());
this->mainThread_.reset(new std::thread([this] {
// make sure we set in any case, even exceptions
auto guard = qScopeGuard([&] {
@@ -409,7 +410,9 @@ private:
std::atomic<bool> addingClient_{false};
ExponentialBackoff<5> connectBackoff_{std::chrono::milliseconds(1000)};
std::shared_ptr<boost::asio::io_service::work> work_{nullptr};
std::shared_ptr<boost::asio::executor_work_guard<
boost::asio::io_context::executor_type>>
work_{nullptr};
liveupdates::WebsocketClient websocketClient_;
std::unique_ptr<std::thread> mainThread_;