Skip to content

Commit 76745d0

Browse files
fix(desktop): kill zombie server process on startup timeout (#11602)
Co-authored-by: Brendan Allan <brendonovich@outlook.com>
1 parent 4850ecc commit 76745d0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • packages/desktop/src-tauri/src

packages/desktop/src-tauri/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,7 @@ async fn spawn_local_server(
526526
let timestamp = Instant::now();
527527
loop {
528528
if timestamp.elapsed() > Duration::from_secs(30) {
529+
let _ = child.kill();
529530
break Err(format!(
530531
"Failed to spawn OpenCode Server. Logs:\n{}",
531532
get_logs(app.clone()).await.unwrap()

0 commit comments

Comments
 (0)