mirror of
https://github.com/AsamK/signal-cli.git
synced 2026-03-04 00:53:50 +00:00
Fix shutdown delay regression in daemon mode
This commit is contained in:
parent
98b46353ea
commit
6abe3c7a06
@ -10,7 +10,7 @@ slf4j-api = { module = "org.slf4j:slf4j-api", version.ref = "slf4j" }
|
||||
slf4j-jul = { module = "org.slf4j:jul-to-slf4j", version.ref = "slf4j" }
|
||||
logback = "ch.qos.logback:logback-classic:1.5.18"
|
||||
|
||||
signalservice = "com.github.turasa:signal-service-java:2.15.3_unofficial_129"
|
||||
signalservice = "com.github.turasa:signal-service-java:2.15.3_unofficial_130"
|
||||
sqlite = "org.xerial:sqlite-jdbc:3.50.3.0"
|
||||
hikari = "com.zaxxer:HikariCP:7.0.2"
|
||||
junit-jupiter = "org.junit.jupiter:junit-jupiter:5.13.4"
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user