mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-04 19:17:37 +08:00
update retry message.
This commit is contained in:
parent
449ae96c8f
commit
7485b51c48
1
main.go
1
main.go
@ -310,6 +310,7 @@ func main() {
|
|||||||
time.Sleep(time.Second * time.Duration(conf.Account.ReLogin.Delay))
|
time.Sleep(time.Second * time.Duration(conf.Account.ReLogin.Delay))
|
||||||
for {
|
for {
|
||||||
if conf.Account.ReLogin.Disabled {
|
if conf.Account.ReLogin.Disabled {
|
||||||
|
log.Warnf("未启用自动重连, 将退出.")
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
if times > conf.Account.ReLogin.MaxTimes && conf.Account.ReLogin.MaxTimes != 0 {
|
if times > conf.Account.ReLogin.MaxTimes && conf.Account.ReLogin.MaxTimes != 0 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user