fix: loop panic on process exit in serve
This commit is contained in:
1 file changed
+8
-2
@@ -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?"),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user