Merge branch 'main' into fix/packet-queue

This commit is contained in:
wish
2025-02-18 03:16:41 +11:00
2 changed files with 11 additions and 4 deletions

View File

@@ -178,10 +178,6 @@ func (s *Session) sendLoop() {
func (s *Session) recvLoop() {
for {
if time.Now().Add(-30 * time.Second).After(s.lastPacket) {
logoutPlayer(s)
return
}
if s.closed {
logoutPlayer(s)
return