fix(agent): removed redundant check on prev. running check
This commit is contained in:
parent
7737e9910f
commit
b5cf0524b7
|
@ -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