mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-11 20:00:29 +01:00
Add sleep to child polling
This commit is contained in:
@@ -75,6 +75,7 @@ pub async fn node_start<R: Runtime>(
|
||||
// Check on child
|
||||
tokio::spawn(async move {
|
||||
loop {
|
||||
tokio::time::sleep(Duration::from_millis(50)).await;
|
||||
if let Ok(Some(status)) = child.try_wait() {
|
||||
error!("Plugin runtime exited status={}", status);
|
||||
// TODO: Try restarting plugin runtime
|
||||
|
||||
Reference in New Issue
Block a user