From f96767ae750cce04c4a4ec31197f247e51595c42 Mon Sep 17 00:00:00 2001 From: Kanishk Kakar Date: Tue, 30 Jul 2019 22:02:05 +0530 Subject: [PATCH] sidebar: Wait 1 sec before quitting app. Give time to DomainUtil for updating domain indices. --- app/main/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/main/index.ts b/app/main/index.ts index b3af41aef..a618c69a1 100644 --- a/app/main/index.ts +++ b/app/main/index.ts @@ -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