Wargroove: Fix Communication Thread (#5125)

This commit is contained in:
Fly Hyping
2025-06-27 19:42:35 -04:00
committed by GitHub
parent 52389731eb
commit da52598c08

View File

@@ -496,6 +496,7 @@ class WargrooveContext(CommonContext):
async def game_watcher(ctx: WargrooveContext):
while not ctx.exit_event.is_set():
try:
if ctx.syncing == True:
sync_msg = [{'cmd': 'Sync'}]
if ctx.locations_checked:
@@ -561,6 +562,9 @@ async def game_watcher(ctx: WargrooveContext):
ctx.finished_game = True
await asyncio.sleep(0.1)
except Exception as err:
logger.warn("Exception in communication thread, a check may not have been sent: " + str(err))
def print_error_and_close(msg):
logger.error("Error: " + msg)