Browse Source

kill the fullstack server before starting another one

Evan Almloff 1 năm trước cách đây
mục cha
commit
ab79c00cd8
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      packages/cli/src/server/desktop/mod.rs

+ 1 - 0
packages/cli/src/server/desktop/mod.rs

@@ -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)