GPCM: Don't panic if close connection fails after logout
Some checks failed
Build CI / build (push) Has been cancelled
golangci-lint / lint (push) Has been cancelled

This commit is contained in:
Palapeli 2026-04-12 10:58:17 -04:00
parent 0b5041663a
commit 9005b4795d
No known key found for this signature in database
GPG Key ID: 1FFE8F556A474925

View File

@ -261,7 +261,7 @@ func sendMessageToSession(msgType string, from uint32, session *GameSpySession,
})
if err := common.SendPacket(ServerName, session.ConnIndex, []byte(message)); err != nil {
logging.Error("GPCM", "Failed to send packet:", err)
common.ShouldNotError(common.CloseConnection(ServerName, session.ConnIndex))
_ = common.CloseConnection(ServerName, session.ConnIndex)
}
}