From b1d374384cceb545cec0c8ff00f964b60888b022 Mon Sep 17 00:00:00 2001 From: Zachary Cowan <44091329+zacowan@users.noreply.github.com> Date: Mon, 6 Dec 2021 12:00:08 -0500 Subject: [PATCH] fix(timer): fixed timer when gameStarted False --- chess_client/client/audio_detection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chess_client/client/audio_detection.py b/chess_client/client/audio_detection.py index c1d871a..1061012 100644 --- a/chess_client/client/audio_detection.py +++ b/chess_client/client/audio_detection.py @@ -49,7 +49,7 @@ def run(): # If we don't detect anything and we exceed a timeout, tell the user we can provide them with a move if not detected_text: - if timer_counter.check_timer(): + if game_engine.isGameStarted and timer_counter.check_timer(): print("TRIGGER") timer_counter.stop_timer() audio_response = get_help_response("TIMEOUT")