From 5b44879005453db219a84aa9cc6f966ec7f16761 Mon Sep 17 00:00:00 2001 From: Mrs4s Date: Fri, 16 Apr 2021 13:14:20 +0800 Subject: [PATCH] fix quick reconnect. --- client/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/client.go b/client/client.go index 721adbe3..5d73fbcf 100644 --- a/client/client.go +++ b/client/client.go @@ -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