From faec8b33c0366d65848bdca264c9a3f5f5d102a6 Mon Sep 17 00:00:00 2001 From: joffrey-bion Date: Fri, 12 Feb 2021 01:40:01 +0100 Subject: Fix race when bots leave game --- sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw-bot') diff --git a/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt b/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt index 86ade852..611c6369 100644 --- a/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt +++ b/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt @@ -93,7 +93,7 @@ class SevenWondersBot( } val lastTurn = endGameTurnInfo.await() logger.info("BOT $player: leaving the game") - session.leaveGame() + session.leaveGameAndAwaitEnd() session.disconnect() logger.info("BOT $player: disconnected") lastTurn -- cgit