File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -840,6 +840,7 @@ async fn watchdog(
840
840
interrupt_receiver : watch:: Receiver < Option < InterruptHandle > > ,
841
841
) {
842
842
const TIMEOUT : Duration = Duration :: from_secs ( 5 ) ;
843
+ let mut has_timed_out = false ;
843
844
844
845
loop {
845
846
let instant = * timeout_receiver. borrow ( ) ;
@@ -854,7 +855,10 @@ async fn watchdog(
854
855
Ok ( Err ( _) ) => return ,
855
856
Err ( _) => {
856
857
if let Some ( handle) = & * interrupt_receiver. borrow ( ) {
857
- log:: error!( target: "Auto Splitter" , "timeout, no update in {} seconds" , TIMEOUT . as_secs_f32( ) ) ;
858
+ if !has_timed_out {
859
+ log:: error!( target: "Auto Splitter" , "timeout, no update in {} seconds" , TIMEOUT . as_secs_f32( ) ) ;
860
+ has_timed_out = true ;
861
+ }
858
862
handle. interrupt ( ) ;
859
863
}
860
864
}
You can’t perform that action at this time.
0 commit comments