We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba3515f commit 5ff044aCopy full SHA for 5ff044a
lib/remote/jsonrpcconnection.cpp
@@ -164,7 +164,7 @@ ConnectionRole JsonRpcConnection::GetRole() const
164
void JsonRpcConnection::SendMessage(const Dictionary::Ptr& message)
165
{
166
if (m_ShuttingDown) {
167
- return;
+ BOOST_THROW_EXCEPTION(std::runtime_error("Cannot send message to already disconnected API client '" + GetIdentity() + "'!"));
168
}
169
170
Ptr keepAlive (this);
@@ -175,7 +175,7 @@ void JsonRpcConnection::SendMessage(const Dictionary::Ptr& message)
175
void JsonRpcConnection::SendRawMessage(const String& message)
176
177
178
179
180
181
0 commit comments