windows daemon process checks

Check for running daemon without arguments on Windows
This commit is contained in:
Thomas Zarebczan 2018-11-07 11:30:41 -05:00
parent a490a30798
commit e0b31d464d

View file

@ -64,7 +64,9 @@ if (isDev) {
} }
app.on('ready', async () => { app.on('ready', async () => {
const processList = await findProcess('name', 'lbrynet start'); const processListArgs = process.platform === 'win32' ? 'lbrynet' : 'lbrynet start';
const processList = await findProcess('name', processListArgs);
const isDaemonRunning = processList.length > 0; const isDaemonRunning = processList.length > 0;
if (!isDaemonRunning) { if (!isDaemonRunning) {