Skip to content

Commit

Permalink
fix: loop panic on process exit in serve
Browse files Browse the repository at this point in the history
  • Loading branch information
jkelleyrtp committed Jan 21, 2025
1 parent 439e3e7 commit 2c6a521
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/cli/src/serve/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?"),
}
}
Expand All @@ -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?"),
}
}
Expand Down

0 comments on commit 2c6a521

Please sign in to comment.