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

fix reg timeout.

This commit is contained in:
Mrs4s 2020-11-27 01:25:19 +08:00
parent b5cce86b4d
commit bef0a209d0

View File

@ -1115,7 +1115,7 @@ func (c *QQClient) netLoop() {
break
}
reader = binary.NewNetworkReader(c.Conn)
if e := c.registerClient(); e != nil {
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())