ensure all keys are released when emulation ends

This commit is contained in:
Ferdinand Schober
2024-07-16 20:39:38 +02:00
parent f3de36bc26
commit 24948773fc

View File

@@ -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(())
}