From 913697905f2ee798868a877f8c17046acea96f08 Mon Sep 17 00:00:00 2001 From: LastExceed Date: Tue, 13 Feb 2024 18:14:05 +0100 Subject: [PATCH] fix masters not excluing themselves when looking for other running machines --- src/state/listener.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();