mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Fix batch response in case of empty responses list
This adapts the implementation to the JSON-RPC specification.
This commit is contained in:
parent
b2a32666e9
commit
fd851ba6cb
1 changed files with 3 additions and 1 deletions
|
@ -95,9 +95,11 @@ public class JsonRpcReader {
|
|||
return handleRequest(requestHandler, request);
|
||||
}).filter(Objects::nonNull).toList();
|
||||
|
||||
if (responseList.size() > 0) {
|
||||
jsonRpcSender.sendBatchResponses(responseList);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private JsonRpcResponse handleRequest(final RequestHandler requestHandler, final JsonRpcRequest request) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue