Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix(app): simplify app quit process
Browse files Browse the repository at this point in the history
Remove redundant code relating to the app close/quit process.
  • Loading branch information
mrfelton committed Aug 16, 2018
1 parent 114151f commit dfa09c7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
3 changes: 0 additions & 3 deletions app/lib/zap/controller.js
Expand Up @@ -199,9 +199,6 @@ class ZapController {
if (this.neutrino) {
this.neutrino.stop()
}

// Give the grpc connections a chance to be properly closed out.
return new Promise(resolve => setTimeout(resolve, 200))
}

onTerminate() {
Expand Down
12 changes: 0 additions & 12 deletions app/main.dev.js
Expand Up @@ -99,18 +99,6 @@ app.on('ready', () => {
}
})

/**
* Add application event listener:
* - quit app when window is closed
*/
app.on('window-all-closed', () => {
mainLog.debug('app.window-all-closed')
// Respect the OSX convention of having the application in memory even after all windows have been closed
if (process.platform !== 'darwin') {
app.quit()
}
})

/**
* Add application event listener:
* - Stop gRPC and kill lnd process before the app windows are closed and the app quits.
Expand Down

0 comments on commit dfa09c7

Please sign in to comment.