Skip to content

Commit

Permalink
fix: nil pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Aug 29, 2023
1 parent 77b54fc commit 417a0f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/gocq/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func LoginInteract() {
if err != nil {
log.Warn(err)
}
if len(signServer.URL) > 1 {
if signServer != nil && len(signServer.URL) > 1 {
log.Infof("使用签名服务器:%v", signServer.URL)
go signStartRefreshToken(base.Account.RefreshInterval) // 定时刷新 token
wrapper.DandelionEnergy = energy
Expand Down

0 comments on commit 417a0f2

Please sign in to comment.