File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -920,6 +920,7 @@ fn run<T: event::CommandSink + TimerQuery + Send>(
920
920
921
921
fn watchdog < T : event:: CommandSink + TimerQuery + Send > ( shared_state : Arc < SharedState < T > > ) {
922
922
const TIMEOUT : Duration = Duration :: from_secs ( 5 ) ;
923
+ let mut has_timed_out = false ;
923
924
924
925
let Ok ( mut state) = shared_state. watchdog_state . lock ( ) else {
925
926
return ;
@@ -944,9 +945,15 @@ fn watchdog<T: event::CommandSink + TimerQuery + Send>(shared_state: Arc<SharedS
944
945
} ;
945
946
946
947
if result. timed_out ( ) {
948
+ if !has_timed_out {
949
+ log:: error!( target: "Auto Splitter" , "timeout, no update in {} seconds" , TIMEOUT . as_secs_f32( ) ) ;
950
+ has_timed_out = true ;
951
+ }
947
952
if let Some ( auto_splitter) = & * shared_state. auto_splitter . load ( ) {
948
953
auto_splitter. interrupt_handle ( ) . interrupt ( ) ;
949
954
}
955
+ } else {
956
+ has_timed_out = false ;
950
957
}
951
958
952
959
new_state
You can’t perform that action at this time.
0 commit comments