From 5020ce94e77f5b6d9b239f97131d0a111557d02a Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Fri, 22 Apr 2022 12:26:19 -0700 Subject: [PATCH] do not require qprocess --- scripts/killswitch.cmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/killswitch.cmd b/scripts/killswitch.cmd index b2fcaaa..0c8e8ec 100644 --- a/scripts/killswitch.cmd +++ b/scripts/killswitch.cmd @@ -27,8 +27,8 @@ if "%PROXY_IP%" EQU "localhost" ( :: Check if the proxy server process is running :: https://stackoverflow.com/questions/162291/how-to-check-if-a-process-is-running-via-a-batch-script - qprocess "mitmdump.exe">NUL - if %ERRORLEVEL% NEQ 0 ( + tasklist /fi "ImageName eq mitmdump.exe" /fo csv 2>NUL | find /I "mitmdump.exe">NUL + if "%ERRORLEVEL%" NEQ "0" ( goto killgame )