add invalidateSessions

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

View File

@@ -174,10 +174,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