Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #8830 from brave/fix-zombie-processes
Browse files Browse the repository at this point in the history
saveAppState needs to be called to perform the quit
  • Loading branch information
bsclifton authored May 11, 2017
2 parents d5848c7 + 01e62d6 commit 12199f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ const initiateSessionStateSave = () => {
// quit triggered by window-all-closed should save last window state
if (lastWindowClosed && lastWindowState) {
perWindowState.push(lastWindowState)
saveAppState(true)
} else if (BrowserWindow.getAllWindows().length > 0) {
++requestId
BrowserWindow.getAllWindows().forEach((win) => win.webContents.send(messages.REQUEST_WINDOW_STATE, requestId))
Expand Down

0 comments on commit 12199f9

Please sign in to comment.