fallbackswitch: Set end running time as current running time once a buffer has passed

This commit is contained in:
Sebastian Dröge 2022-04-13 14:23:54 +03:00 committed by Sebastian Dröge
parent 4aa00c9eca
commit 279dd7d053

View file

@ -754,6 +754,9 @@ impl FallbackSwitch {
}
let mut pad_state = pad_imp.state.lock();
if let Some(running_time) = end_running_time {
pad_state.current_running_time = Some(running_time);
}
pad_state.is_healthy = pad_state.is_healthy(&state, &settings);
drop(pad_state);