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
1 changed files with 2 additions and 2 deletions

View File

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