mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-05 00:41:29 +03:00
use addr from accept
This commit is contained in:
@@ -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() => {
|
||||
|
||||
Reference in New Issue
Block a user