From ac7fc7ad2847a93ef354a2c99dc075dce9ad0854 Mon Sep 17 00:00:00 2001 From: Mrs4s <1844812067@qq.com> Date: Tue, 18 Aug 2020 01:53:11 +0800 Subject: [PATCH] fix Mrs4s/go-cqhttp#63 --- client/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client/client.go b/client/client.go index 13855ddd..84c9b96e 100644 --- a/client/client.go +++ b/client/client.go @@ -961,6 +961,7 @@ func (c *QQClient) netLoop() { } }() } + c.Online = false _ = c.Conn.Close() if c.lastLostMsg == "" { c.lastLostMsg = "Connection lost."