diff options
author | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-12 01:40:01 +0100 |
---|---|---|
committer | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-12 01:59:12 +0100 |
commit | faec8b33c0366d65848bdca264c9a3f5f5d102a6 (patch) | |
tree | c193fef242036f4d35a8dfcf4a86aff2638b49b4 /sw-bot/src/main/kotlin/org | |
parent | Fix pulsing red (remove incorrect preparedMove field) (diff) | |
download | seven-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')
-rw-r--r-- | sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt | 2 |
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 |