mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-30 00:54:30 +02:00
Don't use boost::asio::io_context::strand method removed in Boost 1.87
This commit is contained in:
parent
7bd35d8c6b
commit
011c67964e
@ -212,7 +212,7 @@ void JsonRpcConnection::SendMessage(const Dictionary::Ptr& message)
|
||||
|
||||
Ptr keepAlive (this);
|
||||
|
||||
m_IoStrand.post([this, keepAlive, message]() { SendMessageInternal(message); });
|
||||
boost::asio::post(m_IoStrand, [this, keepAlive, message] { SendMessageInternal(message); });
|
||||
}
|
||||
|
||||
void JsonRpcConnection::SendRawMessage(const String& message)
|
||||
@ -223,7 +223,7 @@ void JsonRpcConnection::SendRawMessage(const String& message)
|
||||
|
||||
Ptr keepAlive (this);
|
||||
|
||||
m_IoStrand.post([this, keepAlive, message]() {
|
||||
boost::asio::post(m_IoStrand, [this, keepAlive, message] {
|
||||
if (m_ShuttingDown) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user