Skip to content

Commit 6ba9127

Browse files
Fix: sidecar cleanup when only shell-sidecar is enabled (#4254)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
1 parent 2322ac1 commit 6ba9127

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changes/fix-sidecar-cleanup.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": patch
3+
---
4+
5+
Kill sidecar processes on app exit even when only the `shell-sidecar` feature is enabled.

core/tauri/src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ impl<R: Runtime> AppHandle<R> {
448448

449449
/// Runs necessary cleanup tasks before exiting the process
450450
fn cleanup_before_exit(&self) {
451-
#[cfg(shell_execute)]
451+
#[cfg(any(shell_execute, shell_sidecar))]
452452
{
453453
crate::api::process::kill_children();
454454
}

0 commit comments

Comments
 (0)