mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-17 09:21:28 +03:00
fix compilation
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
use std::{
|
use std::{
|
||||||
cell::Cell,
|
cell::Cell,
|
||||||
future,
|
|
||||||
time::{Duration, Instant},
|
time::{Duration, Instant},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -211,7 +211,7 @@ async fn receive_loop(
|
|||||||
let mut buf = [0u8; MAX_EVENT_SIZE];
|
let mut buf = [0u8; MAX_EVENT_SIZE];
|
||||||
while let Ok(_) = conn.recv(&mut buf).await {
|
while let Ok(_) = conn.recv(&mut buf).await {
|
||||||
if let Ok(event) = buf.try_into() {
|
if let Ok(event) = buf.try_into() {
|
||||||
tx.send((handle, event));
|
tx.send((handle, event)).expect("channel closed");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -92,6 +92,7 @@ impl Server {
|
|||||||
let config = Rc::new(config);
|
let config = Rc::new(config);
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
|
active: Rc::new(Cell::new(None)),
|
||||||
config,
|
config,
|
||||||
client_manager,
|
client_manager,
|
||||||
port,
|
port,
|
||||||
|
|||||||
Reference in New Issue
Block a user