diff options
author | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-16 03:00:05 +0100 |
---|---|---|
committer | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-16 03:00:05 +0100 |
commit | 2bb1b91968b5571b3d0e8cb0383a10fd03efeb16 (patch) | |
tree | 2479421db2369075cf642a13b04241f2a444ab0a /sw-server | |
parent | Fix copy-guild move (points are now counted properly) (diff) | |
download | seven-wonders-2bb1b91968b5571b3d0e8cb0383a10fd03efeb16.tar.gz seven-wonders-2bb1b91968b5571b3d0e8cb0383a10fd03efeb16.tar.bz2 seven-wonders-2bb1b91968b5571b3d0e8cb0383a10fd03efeb16.zip |
Ensure disconnected players are removed
Diffstat (limited to 'sw-server')
-rw-r--r-- | sw-server/src/main/kotlin/org/luxons/sevenwonders/server/config/StompDisconnectionListener.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/config/StompDisconnectionListener.kt b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/config/StompDisconnectionListener.kt index 893abe19..a33584e0 100644 --- a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/config/StompDisconnectionListener.kt +++ b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/config/StompDisconnectionListener.kt @@ -37,7 +37,7 @@ internal class StompDisconnectionListener( // TODO auto-play until the end? https://github.com/joffrey-bion/seven-wonders/issues/85 player.isInGame -> gameController.leave(principal) player.isInLobby -> lobbyController.leave(principal) - else -> playerRepository.remove(principal.name) } + playerRepository.remove(principal.name) } } |