diff --git a/packages/cli/src/serve/runner.rs b/packages/cli/src/serve/runner.rs index 058e46556..597c47753 100644 --- a/packages/cli/src/serve/runner.rs +++ b/packages/cli/src/serve/runner.rs @@ -66,7 +66,10 @@ impl AppRunner { }, Some(status) = OptionFuture::from(handle.app_child.as_mut().map(|f| f.wait())) => { match status { - Ok(status) => ProcessExited { status, platform }, + Ok(status) => { + handle.app_child = None; + ProcessExited { status, platform } + }, Err(_err) => todo!("handle error in process joining?"), } } @@ -78,7 +81,10 @@ impl AppRunner { }, Some(status) = OptionFuture::from(handle.server_child.as_mut().map(|f| f.wait())) => { match status { - Ok(status) => ProcessExited { status, platform }, + Ok(status) => { + handle.server_child = None; + ProcessExited { status, platform } + }, Err(_err) => todo!("handle error in process joining?"), } }