Skip to content

Commit

Permalink
Fix: sidecar cleanup when only shell-sidecar is enabled (#4254)
Browse files Browse the repository at this point in the history
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
  • Loading branch information
busyboredom and lucasfernog committed Jun 4, 2022
1 parent 2322ac1 commit 6ba9127
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/fix-sidecar-cleanup.md
@@ -0,0 +1,5 @@
---
"tauri": patch
---

Kill sidecar processes on app exit even when only the `shell-sidecar` feature is enabled.
2 changes: 1 addition & 1 deletion core/tauri/src/app.rs
Expand Up @@ -448,7 +448,7 @@ impl<R: Runtime> AppHandle<R> {

/// Runs necessary cleanup tasks before exiting the process
fn cleanup_before_exit(&self) {
#[cfg(shell_execute)]
#[cfg(any(shell_execute, shell_sidecar))]
{
crate::api::process::kill_children();
}
Expand Down

0 comments on commit 6ba9127

Please sign in to comment.