From 9ed9ccf86a632a9fb89f842157e32b4c659ac59f Mon Sep 17 00:00:00 2001 From: Astu04 Date: Fri, 29 Mar 2024 13:31:51 +0100 Subject: [PATCH] counter=0 was missing :) notheowner for noticing it --- custom/ATVServices.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom/ATVServices.sh b/custom/ATVServices.sh index 2c40272..8261bec 100644 --- a/custom/ATVServices.sh +++ b/custom/ATVServices.sh @@ -511,6 +511,7 @@ if result=$(check_mitmpkg); then counter=$((counter+1)) else log -p i -t eMagiskATVService "Process $MITMPKG is alive. No action required." + counter=0 fi continue elif [[ $MITMPKG == com.gocheats.launcher ]]; then @@ -526,6 +527,7 @@ if result=$(check_mitmpkg); then calcTimeDiff=$(( $current_time - $timestamp_epoch )) if [[ $calcTimeDiff -le 120 ]]; then log -p i -t eMagiskATVService "The log was modified within the last 120 seconds. No action required." + counter=0 else log -p i -t eMagiskATVService "The log wasn't modified within the last 120 seconds. Forcing restart of MITM. ts: $timestamp_epoch, time now: $current_time" force_restart