mirror of https://github.com/nymea/nymea.git
Merge PR #159: Add a warning message in JsonRpcServer when a call times out
commit
f884eb9195
|
|
@ -705,6 +705,7 @@ void JsonRPCServer::asyncReplyFinished()
|
|||
,"validating return value", formatAssertion(reply->handler()->name(), reply->method(), QMetaMethod::Method, reply->handler(), reply->data()).toLatin1().data());
|
||||
sendResponse(interface, reply->clientId(), reply->commandId(), reply->data());
|
||||
} else {
|
||||
qCWarning(dcJsonRpc()) << "RPC call timed out:" << reply->handler()->name() << ":" << reply->method();
|
||||
sendErrorResponse(interface, reply->clientId(), reply->commandId(), "Command timed out");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue