mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 10:55:41 +02:00
Fix isProcessRunning error in strict mode
This commit is contained in:
parent
a654bfa692
commit
34630f839f
1 changed files with 1 additions and 2 deletions
|
@ -823,8 +823,7 @@ const notificationIcon = path.join(__dirname, '../resources/console-notification
|
||||||
|
|
||||||
function isProcessRunning(pid) {
|
function isProcessRunning(pid) {
|
||||||
try {
|
try {
|
||||||
running = process.kill(pid, 0);
|
return process.kill(pid, 0);
|
||||||
return true;
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue