pull/8346/merge
James Tucker 2023-07-08 20:13:27 -07:00 committed by GitHub
commit 05aa537950
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -4438,7 +4438,10 @@ func (de *endpoint) heartbeat() {
de.mu.Lock()
defer de.mu.Unlock()
de.heartBeatTimer = nil
if de.heartBeatTimer != nil {
de.heartBeatTimer.Stop()
de.heartBeatTimer = nil
}
if de.heartbeatDisabled {
// If control override to disable heartBeatTimer set, return early.