Add a warning message in JsonRpcServer when a call times out

pull/159/head
Michael Zanetti 2019-04-29 12:47:35 +02:00
parent 6c5f8c482a
commit b83b356f67
1 changed files with 1 additions and 0 deletions

View File

@ -707,6 +707,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");
}