mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 17:18:32 +02: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
|
// Check on child
|
||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
loop {
|
loop {
|
||||||
|
tokio::time::sleep(Duration::from_millis(50)).await;
|
||||||
if let Ok(Some(status)) = child.try_wait() {
|
if let Ok(Some(status)) = child.try_wait() {
|
||||||
error!("Plugin runtime exited status={}", status);
|
error!("Plugin runtime exited status={}", status);
|
||||||
// TODO: Try restarting plugin runtime
|
// TODO: Try restarting plugin runtime
|
||||||
|
|||||||
Reference in New Issue
Block a user