summaryrefslogtreecommitdiff
path: root/sw-bot/src/main/kotlin/org/luxons
diff options
context:
space:
mode:
authorjoffrey-bion <joffrey.bion@gmail.com>2021-02-12 01:40:01 +0100
committerjoffrey-bion <joffrey.bion@gmail.com>2021-02-12 01:59:12 +0100
commitfaec8b33c0366d65848bdca264c9a3f5f5d102a6 (patch)
treec193fef242036f4d35a8dfcf4a86aff2638b49b4 /sw-bot/src/main/kotlin/org/luxons
parentFix pulsing red (remove incorrect preparedMove field) (diff)
downloadseven-wonders-faec8b33c0366d65848bdca264c9a3f5f5d102a6.tar.gz
seven-wonders-faec8b33c0366d65848bdca264c9a3f5f5d102a6.tar.bz2
seven-wonders-faec8b33c0366d65848bdca264c9a3f5f5d102a6.zip
Fix race when bots leave game
Diffstat (limited to 'sw-bot/src/main/kotlin/org/luxons')
-rw-r--r--sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt2
1 files changed, 1 insertions, 1 deletions
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
bgstack15