From ce5280acbe53cced6903aeb84983bcfbd9aa3247 Mon Sep 17 00:00:00 2001 From: Beric Bearnson <37596980+bericyb@users.noreply.github.com> Date: Thu, 24 Oct 2024 21:26:33 -0600 Subject: [PATCH] fix ref? --- cmd/server/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/server/main.go b/cmd/server/main.go index d00e930..857607b 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -64,13 +64,13 @@ func LobbyListen() { _, err = conn.Write(msgOut) if err != nil { slog.Debug("error writing to new player... disconnecting") - msg, err := lobby.Marshal(lobby.DisconnectData{ - From: client.Username, - }, lobby.Disconnect) + // msg, err := lobby.Marshal(lobby.DisconnectData{ + // From: client.Username, + // }, lobby.Disconnect) if err != nil { slog.Error("error marshalling disconnect message on player connect") } - l.BroadcastToLobby(msg) + // l.BroadcastToLobby(msg) } go l.HandleLobbyConnection(client)