Skip to content

Commit

Permalink
fix(timer): fixed timer when gameStarted False
Browse files Browse the repository at this point in the history
  • Loading branch information
zacowan committed Dec 6, 2021
1 parent aed6812 commit b1d3743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chess_client/client/audio_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit b1d3743

Please sign in to comment.