fix used name

This commit is contained in:
Beric Bearnson
2024-10-24 18:15:39 -06:00
parent d25f9c987a
commit 48bb7b895e
2 changed files with 11 additions and 6 deletions
+6 -1
View File
@@ -55,7 +55,12 @@ func LobbyListen() {
}
go func() {
client, msgOut := l.InitialConnectionHandler(conn)
client, msgOut, err := l.InitialConnectionHandler(conn)
if err != nil {
conn.Write(msgOut)
return
}
_, err = conn.Write(msgOut)
if err != nil {
slog.Debug("error writing to new player... disconnecting")