From d34534c4092821477ab924277db4df1956124379 Mon Sep 17 00:00:00 2001 From: htrefil <8711792+htrefil@users.noreply.github.com> Date: Fri, 30 Oct 2020 17:39:11 +0100 Subject: [PATCH] Don't propagate switch keys --- server/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/main.rs b/server/src/main.rs index 872bedd..598566d 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -123,6 +123,7 @@ async fn run( } } + // TODO: This won't work with multiple keys. if key_states.iter().filter(|(_, state)| **state).count() == key_states.len() { for (_, state) in &mut key_states { *state = false; @@ -130,6 +131,7 @@ async fn run( current = (current + 1) % (clients.len() + 1); log::info!("Switching to client {}", current); + continue; } if current != 0 {