Skip to content

Commit a54bba6

Browse files
authored
fix(core): cleanup app before exit, closes #2464 (#2466)
1 parent 81d245f commit a54bba6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
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+
Cleanup application on `AppHandle#exit`.

core/tauri/src/app.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ impl<R: Runtime> AppHandle<R> {
257257

258258
/// Exits the app
259259
pub fn exit(&self, exit_code: i32) {
260+
self.cleanup_before_exit();
260261
std::process::exit(exit_code);
261262
}
262263

0 commit comments

Comments
 (0)