Skip to content

Commit

Permalink
fix: comment reconnect validation
Browse files Browse the repository at this point in the history
  • Loading branch information
diangogav committed Nov 11, 2024
1 parent eee729c commit 59575a0
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/edopro/room/application/Reconnect.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down Expand Up @@ -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;
// }
}
Expand Down

0 comments on commit 59575a0

Please sign in to comment.