From 2b6cb0dcd79c5944a7848d7f44df8c30d1dc1638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Tue, 3 Jul 2018 10:20:04 +0200 Subject: [PATCH] internal: process.exit on disconnect --- src/internals/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/internals/index.js b/src/internals/index.js index 0db57625..50e93f82 100644 --- a/src/internals/index.js +++ b/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!')