mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-14 06:11:27 +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);
|
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
|
// add clients
|
||||||
for handle in server.active_clients() {
|
for handle in server.active_clients() {
|
||||||
emulation.create(handle).await;
|
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 potentially still pressed keys
|
||||||
release_all_keys(server, &mut emulation).await?;
|
release_all_keys(server, &mut emulation).await?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user