command/agent: Stop HTTP checks when the check is removed
This commit is contained in:
parent
1918f39020
commit
f26a79c325
|
@ -742,6 +742,10 @@ func (a *Agent) RemoveCheck(checkID string, persist bool) error {
|
|||
check.Stop()
|
||||
delete(a.checkMonitors, checkID)
|
||||
}
|
||||
if check, ok := a.checkHTTPs[checkID]; ok {
|
||||
check.Stop()
|
||||
delete(a.checkHTTPs, checkID)
|
||||
}
|
||||
if check, ok := a.checkTTLs[checkID]; ok {
|
||||
check.Stop()
|
||||
delete(a.checkTTLs, checkID)
|
||||
|
|
Loading…
Reference in New Issue