mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-22 08:53:19 +03:00
fix capture reenable
This commit is contained in:
@@ -64,6 +64,7 @@ impl Capture {
|
|||||||
log::warn!("input capture exited: {e}");
|
log::warn!("input capture exited: {e}");
|
||||||
}
|
}
|
||||||
server.set_capture_status(Status::Disabled);
|
server.set_capture_status(Status::Disabled);
|
||||||
|
loop {
|
||||||
tokio::select! {
|
tokio::select! {
|
||||||
_ = rx.recv() => continue,
|
_ = rx.recv() => continue,
|
||||||
_ = server.capture_enabled() => break,
|
_ = server.capture_enabled() => break,
|
||||||
@@ -72,6 +73,7 @@ impl Capture {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async fn do_capture(
|
async fn do_capture(
|
||||||
server: &Server,
|
server: &Server,
|
||||||
|
|||||||
Reference in New Issue
Block a user