mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-28 07:30:54 +03:00
fix double release
This commit is contained in:
@@ -41,9 +41,15 @@ impl Emulation {
|
||||
Some(e) => e,
|
||||
None => break,
|
||||
};
|
||||
if let ProtoEvent::Ping = event {
|
||||
log::trace!("{event} <-<-<-<-<- {addr}");
|
||||
} else {
|
||||
log::info!("{event} <-<-<-<-<- {addr}");
|
||||
}
|
||||
last_response.insert(addr, Instant::now());
|
||||
match event {
|
||||
ProtoEvent::Enter(_) => {
|
||||
log::info!("A CLIENT ENTERED THE DEVICE!");
|
||||
server.release_capture();
|
||||
listener.reply(addr, ProtoEvent::Ack(0)).await;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user