mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-07-13 00:43:48 +00:00
fix quick reconnect.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user