fix ref?
This commit is contained in:
parent
48bb7b895e
commit
ce5280acbe
|
@ -64,13 +64,13 @@ func LobbyListen() {
|
||||||
_, err = conn.Write(msgOut)
|
_, err = conn.Write(msgOut)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
slog.Debug("error writing to new player... disconnecting")
|
slog.Debug("error writing to new player... disconnecting")
|
||||||
msg, err := lobby.Marshal(lobby.DisconnectData{
|
// msg, err := lobby.Marshal(lobby.DisconnectData{
|
||||||
From: client.Username,
|
// From: client.Username,
|
||||||
}, lobby.Disconnect)
|
// }, lobby.Disconnect)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
slog.Error("error marshalling disconnect message on player connect")
|
slog.Error("error marshalling disconnect message on player connect")
|
||||||
}
|
}
|
||||||
l.BroadcastToLobby(msg)
|
// l.BroadcastToLobby(msg)
|
||||||
}
|
}
|
||||||
|
|
||||||
go l.HandleLobbyConnection(client)
|
go l.HandleLobbyConnection(client)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user