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:
parent
5b46d1651f
commit
5b44879005
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user