fix masters not excluing themselves when looking for other running machines

This commit is contained in:
LastExceed 2024-02-13 18:14:05 +01:00
parent b56fcbb519
commit 913697905f

View File

@ -138,7 +138,7 @@ impl State<Listener> {
.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();