1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-05 03:23:49 +08:00

fix device lock.

This commit is contained in:
Mrs4s 2021-07-02 09:46:15 +08:00
parent edde0c212c
commit ad7e53009d
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7

View File

@ -130,6 +130,7 @@ func loginResponseProcessor(res *client.LoginResponse) error {
continue continue
} }
cli.Disconnect() cli.Disconnect()
cli = client.NewClientEmpty()
return qrcodeLogin() return qrcodeLogin()
case client.NeedCaptcha: case client.NeedCaptcha:
log.Warnf("登录需要验证码.") log.Warnf("登录需要验证码.")