mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-08 04:55:56 +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 {
|
if err != nil {
|
||||||
c.Error("parse incoming packet error: %v", err)
|
c.Error("parse incoming packet error: %v", err)
|
||||||
if errors.Is(err, packets.ErrSessionExpired) || errors.Is(err, packets.ErrPacketDropped) {
|
if errors.Is(err, packets.ErrSessionExpired) || errors.Is(err, packets.ErrPacketDropped) {
|
||||||
c.quickReconnect()
|
go c.quickReconnect()
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
errCount++
|
errCount++
|
||||||
if errCount > 2 {
|
if errCount > 2 {
|
||||||
c.quickReconnect()
|
go c.quickReconnect()
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user