Skip to content

Commit

Permalink
JsonRpcConnection#Send*Message(): don't use removed strand method
Browse files Browse the repository at this point in the history
  • Loading branch information
Al2Klimov authored Jan 7, 2025
1 parent 6ab951a commit db2c23a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/remote/jsonrpcconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
}
Expand Down

0 comments on commit db2c23a

Please sign in to comment.