Skip to content

Commit

Permalink
counter=0 was missing :)
Browse files Browse the repository at this point in the history
notheowner for noticing it
  • Loading branch information
Astu04 authored Mar 29, 2024
1 parent 3d841b8 commit 9ed9ccf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom/ATVServices.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 9ed9ccf

Please sign in to comment.