Skip to content

Commit

Permalink
fix(core): cleanup app before exit, closes #2464 (#2466)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed Aug 17, 2021
1 parent 81d245f commit a54bba6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changes/app-handle-exit-cleanup.md
@@ -0,0 +1,5 @@
---
"tauri": patch
---

Cleanup application on `AppHandle#exit`.
1 change: 1 addition & 0 deletions core/tauri/src/app.rs
Expand Up @@ -257,6 +257,7 @@ impl<R: Runtime> AppHandle<R> {

/// Exits the app
pub fn exit(&self, exit_code: i32) {
self.cleanup_before_exit();
std::process::exit(exit_code);
}

Expand Down

0 comments on commit a54bba6

Please sign in to comment.