fix(agent): removed redundant check on prev. running check

This commit is contained in:
Alessandro De Blasis 2022-08-29 17:53:39 +01:00
parent 7737e9910f
commit b5cf0524b7
1 changed files with 0 additions and 3 deletions

View File

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