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 Aug 14, 2019
1 parent eed368c commit 20272a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,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 20272a2

Please sign in to comment.