1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 11:07:40 +08:00

add some comment.

This commit is contained in:
Mrs4s 2020-11-27 01:25:45 +08:00
parent bef0a209d0
commit 3bfec47a16

View File

@ -1115,7 +1115,7 @@ func (c *QQClient) netLoop() {
break
}
reader = binary.NewNetworkReader(c.Conn)
if e := c.registerClient(); e != nil && e.Error() != "Packet timed out" {
if e := c.registerClient(); e != nil && e.Error() != "Packet timed out" { // 掉线在心跳已经有判断了, 只需要处理返回值
c.Disconnect()
c.lastLostMsg = "register client failed: " + e.Error()
c.Error("reconnect failed: " + e.Error())