mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Split receiveMessages method
This commit is contained in:
parent
430c155f7e
commit
5c389c875d
6 changed files with 32 additions and 15 deletions
|
@ -33,7 +33,6 @@ import java.io.IOException;
|
|||
import java.io.InputStreamReader;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
public class JsonRpcDispatcherCommand implements LocalCommand {
|
||||
|
||||
|
@ -173,7 +172,7 @@ public class JsonRpcDispatcherCommand implements LocalCommand {
|
|||
while (!Thread.interrupted()) {
|
||||
try {
|
||||
final var receiveMessageHandler = new JsonReceiveMessageHandler(m, jsonWriter);
|
||||
m.receiveMessages(1, TimeUnit.HOURS, false, receiveMessageHandler);
|
||||
m.receiveMessages(receiveMessageHandler);
|
||||
break;
|
||||
} catch (IOException e) {
|
||||
logger.warn("Receiving messages failed, retrying", e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue