Browse Source

Shut down app when lnd closes

renovate/lint-staged-8.x
Ben Woosley 7 years ago
parent
commit
483064f95f
No known key found for this signature in database GPG Key ID: 4D8CA4BA18040906
  1. 5
      app/main.dev.js

5
app/main.dev.js

@ -166,7 +166,10 @@ const startLnd = (alias, autopilot) => {
message: `lnd error: ${error}`
})
})
.on('close', code => console.log(`lnd shutting down ${code}`))
.on('close', (code) => {
console.log(`lnd shutting down ${code}`)
app.quit()
})
// Listen for when neutrino prints out data
neutrino.stdout.on('data', (data) => {

Loading…
Cancel
Save