Skip to content

Commit

Permalink
Don't exit if preventDefault used in will-quit event (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
phallguy authored Mar 30, 2022
1 parent e7b9505 commit cfeacf6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/integrations/main-process-session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ export class MainProcessSession implements Integration {

/** Handles the exit */
private _exitHandler: (event: Electron.Event) => Promise<void> = async (event: Electron.Event) => {
if (event.defaultPrevented) {
return;
}

logger.log('[MainProcessSession] Exit Handler');

// Stop the exit so we have time to send the session
Expand Down

0 comments on commit cfeacf6

Please sign in to comment.