From 167da9dfd51a2acc0b6ae3c89bd564bc0fe74a22 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Wed, 21 Sep 2016 11:46:41 -0700 Subject: [PATCH] Double wait time until quit On my modern Macbook 12" I've run into "Saving state took too long. Quitting.". We have users with spinning disk drives, so let's be a bit more generous. --- src/main/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/index.js b/src/main/index.js index c82d8846..45b2c015 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -107,7 +107,7 @@ function init () { setTimeout(() => { console.error('Saving state took too long. Quitting.') app.quit() - }, 2000) // quit after 2 secs, at most + }, 4000) // quit after 4 secs, at most }) app.on('activate', function () {