From 2657f9c19e73aa1fb8586b81bdc934b99ad44beb Mon Sep 17 00:00:00 2001 From: HKLeeeee Date: Wed, 6 Dec 2023 13:59:22 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[BE]=2010=EC=B4=88=20=EC=9D=B4=EC=83=81?= =?UTF-8?q?=20=EC=97=B0=EA=B2=B0=EB=90=98=EC=97=88=EC=A7=80=EB=A7=8C=20?= =?UTF-8?q?=EC=9D=91=EB=8B=B5=EB=B0=9B=EC=A7=80=20=EB=AA=BB=ED=95=9C=20?= =?UTF-8?q?=EC=86=8C=EC=BC=93=20=EC=97=B0=EA=B2=B0=20=ED=95=B4=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backEnd/api/src/run/run.gateway.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backEnd/api/src/run/run.gateway.ts b/backEnd/api/src/run/run.gateway.ts index 7ba9d55..98feee6 100644 --- a/backEnd/api/src/run/run.gateway.ts +++ b/backEnd/api/src/run/run.gateway.ts @@ -96,8 +96,9 @@ export class RunGateway implements OnGatewayConnection { handleNotCompleteSocket() { const Before10S = Date.now() - 10000; this.connectedSockets.forEach((value, key) => { - const { createTime } = value; + const { socket, createTime } = value; if (createTime < Before10S) this.connectedSockets.delete(key); + socket.disconnect(); }); } }