Skip to content

Commit

Permalink
fix: ensure connection is cleaned up on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Jan 20, 2021
1 parent cee053f commit 53edebf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/electron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ app.whenReady().then(function () {
? path.join(__dirname, '../assets', 'trayTemplate.png')
: path.join(__dirname, '../assets', 'icon.png')
)
// tray.setIgnoreDoubleClickEvents(true)
// if (process.platform !== 'darwin') {
// tray.on('click', toggleWindow)
// }

const menu = new Menu()
menu.append(
Expand Down Expand Up @@ -102,6 +98,7 @@ function trayQuit() {
.then((v) => {
console.log('quit: ', v.response)
if (v.response === 0) {
client.disconnect()
app.quit()
}
})
Expand Down

0 comments on commit 53edebf

Please sign in to comment.