mirror of https://github.com/hashicorp/consul
fix(agent): removed redundant check on prev. running check
parent
fd2dd89faa
commit
c0d647d11e
|
@ -2939,9 +2939,6 @@ func (a *Agent) addCheck(check *structs.HealthCheck, chkType *structs.CheckType,
|
|||
Client: a.osServiceClient,
|
||||
StatusHandler: statusHandler,
|
||||
}
|
||||
if prev := a.checkOSServices[cid]; prev != nil {
|
||||
prev.Stop()
|
||||
}
|
||||
osServiceCheck.Start()
|
||||
a.checkOSServices[cid] = osServiceCheck
|
||||
|
||||
|
|
Loading…
Reference in New Issue