kill the fullstack server before starting another one

This commit is contained in:
Evan Almloff committed 2023-12-29 16:07:44 -06:00
1 parent 49be972507
commit ab79c00cd8
1 file changed
+1
+1
View File
@@ -263,6 +263,7 @@ impl Platform for DesktopPlatform {
}
fn rebuild(&mut self, config: &CrateConfig) -> Result<BuildResult> {
self.currently_running_child.0.kill()?;
let (child, result) = start_desktop(config, self.skip_assets)?;
self.currently_running_child = child;
Ok(result)