mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-20 11:40:55 +03:00
fix compilation
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
use std::{
|
||||
cell::Cell,
|
||||
future,
|
||||
time::{Duration, Instant},
|
||||
};
|
||||
|
||||
|
||||
@@ -211,7 +211,7 @@ async fn receive_loop(
|
||||
let mut buf = [0u8; MAX_EVENT_SIZE];
|
||||
while let Ok(_) = conn.recv(&mut buf).await {
|
||||
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);
|
||||
|
||||
Self {
|
||||
active: Rc::new(Cell::new(None)),
|
||||
config,
|
||||
client_manager,
|
||||
port,
|
||||
|
||||
Reference in New Issue
Block a user