diff --git a/package.json b/package.json index c41bca4b..376b660c 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "productName": "Ledger Live", "description": "Ledger Live - Desktop", "repository": "https://github.com/LedgerHQ/ledger-live-desktop", - "version": "1.0.0-beta.3", + "version": "1.0.0-beta.5", "author": "Ledger", "license": "MIT", "scripts": { diff --git a/src/main/app.js b/src/main/app.js index acd98db2..cab281b3 100644 --- a/src/main/app.js +++ b/src/main/app.js @@ -12,9 +12,7 @@ import { import menu from 'main/menu' import db from 'helpers/db' -import { setMainProcessPID, terminateAllTheThings } from './terminator' - -setMainProcessPID(process.pid) +import { terminateAllTheThings } from './terminator' // necessary to prevent win from being garbage collected let mainWindow = null diff --git a/src/main/terminator.js b/src/main/terminator.js index 8bc0f6cc..6c2a5835 100644 --- a/src/main/terminator.js +++ b/src/main/terminator.js @@ -15,7 +15,6 @@ // \ \ \ | | / / // \ \ \ / -let MAIN_PROCESS_PID: ?number = null let INTERNAL_PROCESS_PID: ?number = null function kill(processType, pid) { @@ -23,10 +22,8 @@ function kill(processType, pid) { process.kill(pid, 'SIGTERM') } -exports.setMainProcessPID = (pid: number) => (MAIN_PROCESS_PID = pid) exports.setInternalProcessPID = (pid: number) => (INTERNAL_PROCESS_PID = pid) exports.terminateAllTheThings = () => { if (INTERNAL_PROCESS_PID) kill('internal', INTERNAL_PROCESS_PID) - if (MAIN_PROCESS_PID) kill('main', MAIN_PROCESS_PID) }