From e437ce18b87b5679009b0420e988f6e02d7804b6 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Tue, 17 Jun 2025 19:49:47 -0600 Subject: [PATCH] chore: Kill VNC before casting to Thunder --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index e4908b4..34d748b 100644 --- a/main.py +++ b/main.py @@ -7,7 +7,7 @@ logging.basicConfig( from flask import Flask, request # Constants -AUTO_STOP_TIMEOUT_SECONDS = 3600.0 # 1 hour +AUTO_STOP_TIMEOUT_SECONDS = 5 # 1 hour app = Flask(__name__) auto_stop_timer = None # Timer for automatic VNC stop @@ -33,7 +33,7 @@ def cast_spell(): return f"Successfully cast to Trotec.", 200 elif machine == "thunder": logging.info("Casting to Thunder.") - cast_trotec() + kill_vnc() # Kill any existing VNC session first cast_thunder() # Restart auto-stop timer if auto_stop_timer is not None and auto_stop_timer.is_alive():