Skip to content

Commit

Permalink
sidebar: Wait 1 sec before quitting app.
Browse files Browse the repository at this point in the history
Give time to DomainUtil for updating domain indices.
  • Loading branch information
kanishk98 committed Jun 23, 2019
1 parent 30db5b6 commit 98f6fc3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,9 @@ app.on('ready', () => {

app.on('before-quit', () => {
mainWindow.webContents.send('save-domains');
isQuitting = true;
setTimeout(() => {
isQuitting = true;
}, 1000);
});

// Send crash reports
Expand Down

0 comments on commit 98f6fc3

Please sign in to comment.