diff --git a/src-tauri/tauri-plugin-plugin-runtime/src/nodejs.rs b/src-tauri/tauri-plugin-plugin-runtime/src/nodejs.rs index 68ddcaa4..67e2021e 100644 --- a/src-tauri/tauri-plugin-plugin-runtime/src/nodejs.rs +++ b/src-tauri/tauri-plugin-plugin-runtime/src/nodejs.rs @@ -75,6 +75,7 @@ pub async fn node_start( // 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