mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-05-08 14:33:23 +00:00
changed tasklist | findstr на tasklist
This commit is contained in:
@@ -76,9 +76,7 @@ function raiseInstallerWindow()
|
|||||||
function appProcessIsRunning()
|
function appProcessIsRunning()
|
||||||
{
|
{
|
||||||
if (runningOnWindows()) {
|
if (runningOnWindows()) {
|
||||||
var cmdArgs = ["| findstr " + appExecutableFileName()];
|
var result = installer.execute("tasklist");
|
||||||
var result = installer.execute("tasklist", cmdArgs);
|
|
||||||
|
|
||||||
if ( Number(result[1]) === 0 ) {
|
if ( Number(result[1]) === 0 ) {
|
||||||
if (result[0].indexOf(appExecutableFileName()) !== -1) {
|
if (result[0].indexOf(appExecutableFileName()) !== -1) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user