fix duplicate barriers

This commit is contained in:
Ferdinand Schober
2024-07-12 01:36:47 +02:00
parent d25c6d4ec2
commit b4afbbec45

View File

@@ -112,15 +112,15 @@ async fn do_capture(
.map(|(h, s)| (h, s.clone())) .map(|(h, s)| (h, s.clone()))
.collect::<Vec<_>>(); .collect::<Vec<_>>();
log::info!("{clients:?}"); log::info!("{clients:?}");
let clients = server // let clients = server
.client_manager // .client_manager
.borrow() // .borrow()
.get_client_states() // .get_client_states()
.map(|(h, (c, _))| (h, c.pos)) // .map(|(h, (c, _))| (h, c.pos))
.collect::<Vec<_>>(); // .collect::<Vec<_>>();
for (handle, pos) in clients { // for (handle, pos) in clients {
capture.create(handle, pos.into()).await?; // capture.create(handle, pos.into()).await?;
} // }
let mut pressed_keys = HashSet::new(); let mut pressed_keys = HashSet::new();
loop { loop {