mirror of
https://github.com/Icinga/icinga2.git
synced 2026-05-28 04:12:13 -04:00
Don't use boost::asio::io_context::strand method removed in Boost 1.87
This commit is contained in:
parent
7bd35d8c6b
commit
011c67964e
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue