1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-04 19:17:37 +08:00

fix: relogin error.

This commit is contained in:
Mrs4s 2021-09-16 17:11:38 +08:00
parent c975975e30
commit cfaa18b131
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7

View File

@ -323,6 +323,10 @@ func main() {
} else { } else {
time.Sleep(time.Second) time.Sleep(time.Second)
} }
if cli.Online {
log.Infof("登录已完成")
break
}
log.Warnf("尝试重连...") log.Warnf("尝试重连...")
err := cli.TokenLogin(AccountToken) err := cli.TokenLogin(AccountToken)
if err == nil { if err == nil {