fix: loop panic on process exit in serve

This commit is contained in:
Jonathan Kelley committed 2025-01-21 00:32:39 -08:00
1 parent 439e3e7723
commit 2c6a5212fc
1 file changed
+8 -2
+8 -2
View File
@@ -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?"),
}
}