1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-07 12:43:32 +08:00

fix quick reconnect.

This commit is contained in:
Mrs4s 2021-04-16 13:14:20 +08:00
parent 5b46d1651f
commit 5b44879005
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7

View File

@ -1025,12 +1025,12 @@ func (c *QQClient) netLoop() {
if err != nil {
c.Error("parse incoming packet error: %v", err)
if errors.Is(err, packets.ErrSessionExpired) || errors.Is(err, packets.ErrPacketDropped) {
c.quickReconnect()
go c.quickReconnect()
continue
}
errCount++
if errCount > 2 {
c.quickReconnect()
go c.quickReconnect()
continue
}
continue