fix: set ping (#3734)

Co-authored-by: int7 <int7@gmail.com>
This commit is contained in:
0x7fff 2023-10-30 20:24:57 +08:00 committed by GitHub
parent a6478aeac8
commit 46266e4d30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: