fix capture reenable

This commit is contained in:
Ferdinand Schober
2024-09-08 11:34:28 +02:00
parent 2c9ecf98d0
commit e2479762ab

View File

@@ -64,10 +64,12 @@ impl Capture {
log::warn!("input capture exited: {e}");
}
server.set_capture_status(Status::Disabled);
tokio::select! {
_ = rx.recv() => continue,
_ = server.capture_enabled() => break,
_ = server.cancelled() => return,
loop {
tokio::select! {
_ = rx.recv() => continue,
_ = server.capture_enabled() => break,
_ = server.cancelled() => return,
}
}
}
}