From 7d4001eb39f65fc1842fe920fa371558c84d3bc3 Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Sat, 16 Sep 2023 10:42:29 +0700 Subject: [PATCH] Shorten watcgdog to 2s --- src/common/streamthread.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/streamthread.rs b/src/common/streamthread.rs index ca63048..2aa6192 100644 --- a/src/common/streamthread.rs +++ b/src/common/streamthread.rs @@ -522,7 +522,7 @@ impl StreamData { }, v = async { loop { - let check_timeout = timeout(Duration::from_secs(5), watchdog_rx.recv()).await; + let check_timeout = timeout(Duration::from_secs(2), watchdog_rx.recv()).await; if let Err(_)| Ok(None) = check_timeout { // Timeout // Reply with Ok to trigger the restart