From 59575a03a154d5d1e0fa9c02f321188d156557ea Mon Sep 17 00:00:00 2001 From: Diango Gavidia Date: Mon, 11 Nov 2024 09:24:31 -0400 Subject: [PATCH] fix: comment reconnect validation --- src/edopro/room/application/Reconnect.ts | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/edopro/room/application/Reconnect.ts b/src/edopro/room/application/Reconnect.ts index a4169c9f..30e14cba 100644 --- a/src/edopro/room/application/Reconnect.ts +++ b/src/edopro/room/application/Reconnect.ts @@ -1,4 +1,3 @@ -import { ServerErrorClientMessage } from "@edopro/messages/server-to-client/ServerErrorMessageClientMessage"; import { UserAuth } from "src/shared/user-auth/application/UserAuth"; import { UserProfile } from "src/shared/user-profile/domain/UserProfile"; @@ -32,15 +31,11 @@ export class Reconnect { return; } - if (!player.socket.id || !player.socket.closed) { - socket.send(ServerErrorClientMessage.create("Ya el jugador se encuentra en la partida.")); - socket.send(ErrorClientMessage.create(ErrorMessages.JOIN_ERROR)); - socket.destroy(); - - return; - } - // if (!player.socket.id || !player.socket.closed) { + // socket.send(ServerErrorClientMessage.create("Ya el jugador se encuentra en la partida.")); + // socket.send(ErrorClientMessage.create(ErrorMessages.JOIN_ERROR)); + // socket.destroy(); + // return; // } }