mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-22 10:23:19 +03:00
fix capture reenable
This commit is contained in:
@@ -64,10 +64,12 @@ 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);
|
||||||
tokio::select! {
|
loop {
|
||||||
_ = rx.recv() => continue,
|
tokio::select! {
|
||||||
_ = server.capture_enabled() => break,
|
_ = rx.recv() => continue,
|
||||||
_ = server.cancelled() => return,
|
_ = server.capture_enabled() => break,
|
||||||
|
_ = server.cancelled() => return,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user