Browse Source

fix: set ping (#3734)

Co-authored-by: int7 <int7@gmail.com>
0x7fff 1 year ago
parent
commit
46266e4d30
1 changed files with 2 additions and 2 deletions
  1. 2 2
      client/control.go

+ 2 - 2
client/control.go

@@ -298,8 +298,8 @@ func (ctl *Control) msgHandler() {
 			xl.Debug("send heartbeat to server")
 			pingMsg := &msg.Ping{}
 			if err := ctl.authSetter.SetPing(pingMsg); err != nil {
-				xl.Warn("error during ping authentication: %v", err)
-				return
+				xl.Warn("error during ping authentication: %v. skip sending ping message", err)
+				continue
 			}
 			ctl.sendCh <- pingMsg
 		case <-hbCheckCh: