diff --git a/src/state/listener.rs b/src/state/listener.rs index 8caecb8..a7d445d 100644 --- a/src/state/listener.rs +++ b/src/state/listener.rs @@ -138,7 +138,7 @@ impl State { .read() .await .iter() - .filter(|(_, booking)| booking.is_running()) + .filter(|(other, booking)| *other != master && booking.is_running()) .flat_map(|(machine, _)| &SLAVES_BY_MASTER[machine]) //todo: error handing .cloned() .collect();