Don't use boost::asio::io_context::strand method removed in Boost 1.87

This commit is contained in:
Alexander Aleksandrovič Klimov 2025-01-07 17:53:42 +01:00 committed by Julian Brost
parent 7bd35d8c6b
commit 011c67964e

View File

@ -212,7 +212,7 @@ void JsonRpcConnection::SendMessage(const Dictionary::Ptr& message)
Ptr keepAlive (this); 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) void JsonRpcConnection::SendRawMessage(const String& message)
@ -223,7 +223,7 @@ void JsonRpcConnection::SendRawMessage(const String& message)
Ptr keepAlive (this); Ptr keepAlive (this);
m_IoStrand.post([this, keepAlive, message]() { boost::asio::post(m_IoStrand, [this, keepAlive, message] {
if (m_ShuttingDown) { if (m_ShuttingDown) {
return; return;
} }