mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-07 11:59:59 +03:00
fix emulation client creation
This commit is contained in:
@@ -98,15 +98,16 @@ async fn do_emulation(
|
||||
|
||||
server.set_emulation_status(Status::Enabled);
|
||||
|
||||
let res = do_emulation_session(server, &mut emulation, rx, udp_rx, sender_tx, capture_tx).await;
|
||||
emulation.terminate().await;
|
||||
res?;
|
||||
|
||||
// add clients
|
||||
for handle in server.active_clients() {
|
||||
emulation.create(handle).await;
|
||||
}
|
||||
|
||||
let res = do_emulation_session(server, &mut emulation, rx, udp_rx, sender_tx, capture_tx).await;
|
||||
|
||||
emulation.terminate().await;
|
||||
res?;
|
||||
|
||||
// release potentially still pressed keys
|
||||
release_all_keys(server, &mut emulation).await?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user