mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-05-06 05:26:33 -05:00
GPCM: Don't panic if close connection fails after logout
This commit is contained in:
parent
0b5041663a
commit
9005b4795d
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user