From 76e1d7777c0e1a5b1560f96e08274228c2b1c442 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Fri, 30 Sep 2016 23:45:04 -0700 Subject: [PATCH] Prevent exception when quitting and delayedInit() gets called --- src/main/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/index.js b/src/main/index.js index 9271ce49..e43dc618 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -122,6 +122,8 @@ function init () { } function delayedInit () { + if (app.isQuitting) return + const announcement = require('./announcement') const dock = require('./dock') const updater = require('./updater')