Browse Source
Shut down app when lnd closes
renovate/lint-staged-8.x
Ben Woosley
7 years ago
No known key found for this signature in database
GPG Key ID: 4D8CA4BA18040906
1 changed files with
4 additions and
1 deletions
-
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) => { |
|
|
|