mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 13:55:55 +00:00
fix(agent): removed redundant check on prev. running check
This commit is contained in:
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…
x
Reference in New Issue
Block a user