fix windows process name to correctly check if the daemon is already running

This commit is contained in:
Sean Yesmunt 2018-11-30 13:06:00 -05:00
parent 46b47c3f8f
commit 9931556049

View file

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