From 74385241950462e3425f18aa30e2b0bcdf0ff14b Mon Sep 17 00:00:00 2001 From: Michiel De Mey Date: Fri, 30 Oct 2015 22:22:10 +0100 Subject: [PATCH] Remove close listener when logging in --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 8b1618b..6bf493c 100644 --- a/index.js +++ b/index.js @@ -83,7 +83,10 @@ mb.on('ready', function() { config.set('access_token', token, function(err) { if (err) throw err - if (loginWindow) loginWindow.close() + if (loginWindow) { + loginWindow.removeListener('close', App.quit) + loginWindow.close() + } initialize() }) break