mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-06 02:01:27 +03:00
simplify enumerate
This commit is contained in:
@@ -502,7 +502,10 @@ impl Server {
|
||||
}
|
||||
|
||||
async fn enumerate(&mut self) {
|
||||
let clients = self.client_manager.enumerate();
|
||||
let clients = self.client_manager
|
||||
.get_client_states()
|
||||
.map(|s| (s.client.clone(), s.active))
|
||||
.collect();
|
||||
if let Err(e) = self
|
||||
.frontend
|
||||
.notify_all(FrontendNotify::Enumerate(clients))
|
||||
|
||||
Reference in New Issue
Block a user