fix: window state preservation by soft-killing the process (#3579)

This commit is contained in:
Jonathan Kelley authored and GitHub committed 2025-01-16 17:53:09 -08:00
1 parent e22ea0c2ff
commit a729968ee4
3 files changed
+57 -10

No files matched your search

+3 -3
View File
@@ -109,7 +109,7 @@ pub(crate) async fn serve_all(mut args: ServeArgs) -> Result<()> {
// Kill any running executables on Windows
if cfg!(windows) {
runner.kill_all();
runner.kill_all().await;
}
// We're going to kick off a new build, interrupting the current build if it's ongoing
@@ -200,7 +200,7 @@ pub(crate) async fn serve_all(mut args: ServeArgs) -> Result<()> {
);
}
runner.kill(platform);
runner.kill(platform).await;
}
ServeUpdate::StdoutReceived { platform, msg } => {
@@ -223,7 +223,7 @@ pub(crate) async fn serve_all(mut args: ServeArgs) -> Result<()> {
// Kill any running executables on Windows
if cfg!(windows) {
runner.kill_all();
runner.kill_all().await;
}
builder.rebuild(args.build_arguments.clone());