mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +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,7 +95,9 @@ public class JsonRpcReader {
|
||||||
return handleRequest(requestHandler, request);
|
return handleRequest(requestHandler, request);
|
||||||
}).filter(Objects::nonNull).toList();
|
}).filter(Objects::nonNull).toList();
|
||||||
|
|
||||||
jsonRpcSender.sendBatchResponses(responseList);
|
if (responseList.size() > 0) {
|
||||||
|
jsonRpcSender.sendBatchResponses(responseList);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue