From 2bb1b91968b5571b3d0e8cb0383a10fd03efeb16 Mon Sep 17 00:00:00 2001 From: joffrey-bion Date: Tue, 16 Feb 2021 03:00:05 +0100 Subject: Ensure disconnected players are removed --- .../org/luxons/sevenwonders/server/config/StompDisconnectionListener.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw-server') 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) } } -- cgit