-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: rework app exit to account for running bots (#9532)
* Work around kill on windows doesn't kill process with shell:true * Proper app teardown * fix windows not able to call taskkill without shell * Fix bot cleanup process * Rework app exit flow * flushExistingTasks to properly call Promise.all * Re-initialize close listeners on app reopened on Mac * allow user to hide window while teardown happens * Refactor and improve * Do not prevent subsequent attempts to close the main window * fix: possible race condition for window recreation on mac * minor improvements * simplify exit logic * bring back missing destroy call * fix flaky test * fix lock --------- Co-authored-by: sw-joelmut <joel.mut@southworks.com>
- Loading branch information
1 parent
efc9138
commit 39f01c2
Showing
6 changed files
with
76 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters