Merge pull request #10795 from Icinga/something-weird-is-going-on

Fix compiler crash on SLES 15.7 arm64 runner
This commit is contained in:
Julian Brost 2026-04-17 09:54:17 +02:00 committed by GitHub
commit ccf090ea82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(); });
}
}
}