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

pull/13388/head
Alessandro De Blasis 2 years ago
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…
Cancel
Save