This commit is contained in:
Sanae 2022-03-15 15:37:23 -06:00
parent 2a8e1696ab
commit a288e5b7a8
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ public class Server {
case ConnectPacket.ConnectionTypes.Reconnecting: {
client.Id = header.Id;
if (FindExistingClient(header.Id) is { } newClient) {
// if (newClient.Connected) throw new Exception($"Tried to join as already connected user {header.Id}");
if (newClient.Connected) throw new Exception($"Tried to join as already connected user {header.Id}");
newClient.Socket = client.Socket;
client = newClient;
} else {