Skip to content

Commit 6386a39

Browse files
committed
sidebar: Wait 1 sec before quitting app.
Give time to DomainUtil for updating domain indices.
1 parent eab2dbd commit 6386a39

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/main/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,9 @@ app.on('ready', () => {
362362

363363
app.on('before-quit', () => {
364364
mainWindow.webContents.send('save-domains');
365-
isQuitting = true;
365+
setTimeout(() => {
366+
isQuitting = true;
367+
}, 1000);
366368
});
367369

368370
// Send crash reports

0 commit comments

Comments
 (0)