mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-04 11:07:39 +08:00
fix: nil pointer
This commit is contained in:
parent
fd6ef4a2b8
commit
77b54fca20
@ -69,7 +69,7 @@ func getAvaliableSignServer() (*config.SignServer, error) {
|
||||
} else if errn.hasOver(uintptr(maxCount)) {
|
||||
log.Fatalf("获取可用签名服务器失败次数超过 %v 次, 正在离线", maxCount)
|
||||
}
|
||||
if len(cs.URL) > 0 {
|
||||
if cs != nil && len(cs.URL) > 0 {
|
||||
log.Warnf("当前签名服务器 %v 不可用,正在查找可用服务器", cs.URL)
|
||||
}
|
||||
cs = asyncCheckServer(base.SignServers)
|
||||
|
Loading…
x
Reference in New Issue
Block a user