Fix shutdown delay regression in daemon mode

This commit is contained in:
AsamK committed 2025-09-23 18:33:05 +02:00
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;
}