windows daemon process checks
Check for running daemon without arguments on Windows
This commit is contained in:
parent
a490a30798
commit
e0b31d464d
1 changed files with 3 additions and 1 deletions
|
@ -64,7 +64,9 @@ if (isDev) {
|
|||
}
|
||||
|
||||
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;
|
||||
|
||||
if (!isDaemonRunning) {
|
||||
|
|
Loading…
Reference in a new issue