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

fix: nil pointer

This commit is contained in:
源文雨 2023-08-29 13:05:48 +08:00
parent fd6ef4a2b8
commit 77b54fca20

View File

@ -69,7 +69,7 @@ func getAvaliableSignServer() (*config.SignServer, error) {
} else if errn.hasOver(uintptr(maxCount)) { } else if errn.hasOver(uintptr(maxCount)) {
log.Fatalf("获取可用签名服务器失败次数超过 %v 次, 正在离线", maxCount) log.Fatalf("获取可用签名服务器失败次数超过 %v 次, 正在离线", maxCount)
} }
if len(cs.URL) > 0 { if cs != nil && len(cs.URL) > 0 {
log.Warnf("当前签名服务器 %v 不可用,正在查找可用服务器", cs.URL) log.Warnf("当前签名服务器 %v 不可用,正在查找可用服务器", cs.URL)
} }
cs = asyncCheckServer(base.SignServers) cs = asyncCheckServer(base.SignServers)