mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-07 11:59:59 +03:00
ensure all keys are released when emulation ends
This commit is contained in:
@@ -88,12 +88,12 @@ async fn do_emulation(
|
||||
|
||||
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?;
|
||||
|
||||
emulation.terminate().await;
|
||||
res?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user