Skip to content

Commit

Permalink
Remove close listener when logging in
Browse files Browse the repository at this point in the history
  • Loading branch information
MichielDeMey committed Oct 30, 2015
1 parent 82d98ec commit 7438524
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7438524

Please sign in to comment.