From 584dc8a5e196933a55dcfa7e7cd076be94436da9 Mon Sep 17 00:00:00 2001 From: sunwoong Date: Sun, 25 Aug 2024 05:18:51 +0900 Subject: [PATCH] =?UTF-8?q?DRAW-259=20fix:=20=EB=8C=80=EA=B8=B0=20?= =?UTF-8?q?=ED=81=90=20exit=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/com/xorker/draw/websocket/MainWebSocketHandler.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/websocket/src/main/kotlin/com/xorker/draw/websocket/MainWebSocketHandler.kt b/app/websocket/src/main/kotlin/com/xorker/draw/websocket/MainWebSocketHandler.kt index 386a2804..25572282 100644 --- a/app/websocket/src/main/kotlin/com/xorker/draw/websocket/MainWebSocketHandler.kt +++ b/app/websocket/src/main/kotlin/com/xorker/draw/websocket/MainWebSocketHandler.kt @@ -19,6 +19,7 @@ internal class MainWebSocketHandler( private val waitingQueueSessionUseCase: WaitingQueueSessionUseCase, private val router: WebSocketRouter, private val requestParser: WebSocketRequestParser, + private val waitingQueueSessionEventListener: List, private val sessionEventListener: List, private val webSocketExceptionHandler: WebSocketExceptionHandler, private val metricManager: MetricManager, @@ -51,7 +52,9 @@ internal class MainWebSocketHandler( val waitingQueueSessionDto = waitingQueueSessionUseCase.getSession(SessionId(session.id)) if (waitingQueueSessionDto != null) { - waitingQueueSessionUseCase.unregisterSession(SessionId(session.id)) + waitingQueueSessionEventListener.forEach { + it.exitSession(waitingQueueSessionDto) + } return }