Skip to content

Commit

Permalink
fix(AI): Start AI thread as deamon to close on application close [TTT…
Browse files Browse the repository at this point in the history
…K-21, TTTK-54]
  • Loading branch information
HOOK-Hawkins committed Mar 12, 2024
1 parent 003f890 commit dc8c4c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AI/ai_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def set_strategy(self, strategy: ai_strategy.AIStrategy):

# Runs the strategy as a new thread and returns the thread
def run_strategy(self):
thread = Thread(target=self._strategy.thread_entry)
thread = Thread(target=self._strategy.thread_entry, daemon=True)
thread.start()
return thread

Expand Down

0 comments on commit dc8c4c7

Please sign in to comment.