This commit is contained in:
邹宗楠
2026-01-30 10:00:57 +08:00
parent 8a8f545656
commit 999c3d7ebe
3 changed files with 22 additions and 11 deletions

View File

@@ -370,11 +370,11 @@ func HandleCheckTcpHeart(t *TcpClient, key string) {
}
}
} else {
globals.SugarLogger.Debugf("-------close1 := %s", key)
t.getClients(key).C.Close()
close(t.MsgMap[key])
close(t.CallBackMap[key])
t.delConn(key)
//t.delConn(key)
t.clear(key)
// 链接出错,彻底删除换成
if printRemoteAddrIP, have := PrintIpAndAddr.GetPrintIpAndAddr(key); have {