Skip to content

Commit

Permalink
Merge pull request #32 from saucesome/master
Browse files Browse the repository at this point in the history
Update SAT-Kiosk timeout handling behavior.
  • Loading branch information
rneher-igel authored Jul 6, 2023
2 parents d7f1a4b + fda966e commit 1780a69
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions CP_Source/Apps/Frame/build/frame-sat-kiosk-launcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,6 @@ querySessionStatus() {
pollSessionStatus() {
logMessage "Polling session status..."

local elapsedSeconds=0
local retryDurationMinutes=${SESSION_RETRY_DURATION_MINUTES:-10} # retry for 10 minutes by default
local maxElapsedSeconds=$((retryDurationMinutes * 60)) # Convert minutes to seconds

# Query the session's status
querySessionStatus
logMessage "Sesssion state: [$sessionStatus] $sessionState"
Expand All @@ -280,14 +276,6 @@ pollSessionStatus() {
logMessage "Sesssion state: [$sessionStatus] $sessionState"

sleep $FRAME_POLLING_INTERVAL_SECONDS
elapsedSeconds=$((elapsedSeconds + $FRAME_POLLING_INTERVAL_SECONDS)) # Increment the elapsed seconds by the sleep duration

if [ $elapsedSeconds -ge $maxElapsedSeconds ]; then
logMessage "Session Streaming Timeout reached. Restarting Frame Wrapper..."
keep_token=true
quitAndRestartWrapper
break
fi
done

# Session closed or otherwise? Time to restart!
Expand Down

0 comments on commit 1780a69

Please sign in to comment.