Browse Source

internal: process.exit on disconnect

master
Gaëtan Renaudeau 7 years ago
parent
commit
2b6cb0dcd7
  1. 6
      src/internals/index.js

6
src/internals/index.js

@ -9,7 +9,7 @@ import { serializeError } from 'helpers/errors'
require('../env')
process.title = 'Internal'
process.title = 'Ledger Live Internal'
const defers = {}
@ -105,4 +105,8 @@ process.on('message', m => {
}
})
process.on('disconnect', () => {
process.exit(0)
})
logger.log('Internal process is up!')

Loading…
Cancel
Save