mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-08-19 23:24:11 -05:00
GPCM: Don't panic if close connection fails after logout
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user