This commit is contained in:
Ferdinand Schober
2024-07-09 20:39:08 +02:00
parent 289c21e000
commit b14dcb6f49
2 changed files with 3 additions and 7 deletions

View File

@@ -115,8 +115,8 @@ impl LibeiEmulation {
.await?;
let events = EiConvertEventStream::new(events, handshake.serial);
let devices = Devices::default();
let ei_task =
tokio::task::spawn_local(ei_event_handler(events, context.clone(), devices.clone()));
let ei_handler = ei_event_handler(events, context.clone(), devices.clone());
let ei_task = tokio::task::spawn_local(ei_handler);
let serial = AtomicU32::new(handshake.serial);