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
+3 -2
View File
@@ -557,8 +557,9 @@ void PubSub::addClient()
void PubSub::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->thread = std::make_unique<std::thread>([this] {
// make sure we set in any case, even exceptions
auto guard = qScopeGuard([&] {