use addr from accept

This commit is contained in:
Ferdinand Schober
2024-09-21 14:53:41 +02:00
parent 4bbabf1e0a
commit 22bf7dc8c2
2 changed files with 15 additions and 16 deletions

View File

@@ -51,10 +51,9 @@ impl Emulation {
emulation_proxy.release_keys(addr);
listener.reply(addr, ProtoEvent::Ack(0)).await;
}
ProtoEvent::Ack(_) => {}
ProtoEvent::Input(event) => emulation_proxy.consume(event, addr),
ProtoEvent::Ping => listener.reply(addr, ProtoEvent::Pong).await,
ProtoEvent::Pong => {},
_ => {}
}
}
_ = interval.tick() => {