mirror of
https://github.com/AsamK/signal-cli.git
synced 2026-11-29 08:55:48 +00:00
Fix shutdown delay regression in daemon mode
This commit is contained in:
1 parent
98b46353ea
commit
6abe3c7a06
2 files changed
+3
-3
No files matched your search
@@ -142,8 +142,8 @@ public class ReceiveHelper {
|
||||
logger.trace("Checking for new message from server");
|
||||
try {
|
||||
isWaitingForMessage = true;
|
||||
final var timeoutMs = timeoutInstant.isPresent() ? Math.min(10_000,
|
||||
Duration.between(Instant.now(), timeoutInstant.get()).toMillis()) : 10_000L;
|
||||
final var timeoutMs = timeoutInstant.isPresent() ? Math.min(60_000,
|
||||
Duration.between(Instant.now(), timeoutInstant.get()).toMillis()) : 60_000L;
|
||||
if (timeoutMs <= 0L) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user