fix(core): cleanup app before exit, closes #2464 (#2466)

This commit is contained in:
Lucas Fernandes Nogueira 2021-08-17 09:29:32 -03:00 committed by GitHub
parent 81d245f687
commit a54bba6c86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
"tauri": patch
---
Cleanup application on `AppHandle#exit`.

View File

@ -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);
}