diff --git a/package.json b/package.json index fd2b90e..3f4efb0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "huefl", - "version": "0.0.4", + "version": "0.0.1", "description": "abc", "main": "src/index.js", "scripts": { diff --git a/src/index.js b/src/index.js index 928cddb..565715e 100644 --- a/src/index.js +++ b/src/index.js @@ -81,7 +81,7 @@ if (!gotTheLock) { mainWindow.webContents.send('log', 'Update heruntergeladen!'); // () // delete java process if existent before quitAndInstall!! --> using jarExec.pid try { - process.kill(jarExec.pid); + process.kill(jarExec.pid); // could have also used spawn process for jarExec ... console.log(`Java process with PID ${jarExec.pid} terminated.`); } catch (error) { console.info( @@ -354,15 +354,16 @@ if (!gotTheLock) { './jars/Hue-Ambiance.jar', (err, stdout, stderr) => { if (err) { - mainWindow.webContents.send('noJavaAlert', ''); - throw err; + mainWindow.webContents.send('noJavaAlert', ''); // also triggered on update due to process killing, but shouldn't matter + console.info(err); + //throw err; } console.log(stdout); console.log(stderr); } ); //console.log(jarExec); - console.log('jarExec.pid:' + jarExec.pid); + console.log('jarExec.pid:' + jarExec.pid); // could have also used spawn process for jarExec ... } } else { // TODO: No Java installed