mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 22:06:20 +00:00
command/agent: Stop HTTP checks when the check is removed
This commit is contained in:
parent
6a2d763d5c
commit
50853265dd
@ -742,6 +742,10 @@ func (a *Agent) RemoveCheck(checkID string, persist bool) error {
|
|||||||
check.Stop()
|
check.Stop()
|
||||||
delete(a.checkMonitors, checkID)
|
delete(a.checkMonitors, checkID)
|
||||||
}
|
}
|
||||||
|
if check, ok := a.checkHTTPs[checkID]; ok {
|
||||||
|
check.Stop()
|
||||||
|
delete(a.checkHTTPs, checkID)
|
||||||
|
}
|
||||||
if check, ok := a.checkTTLs[checkID]; ok {
|
if check, ok := a.checkTTLs[checkID]; ok {
|
||||||
check.Stop()
|
check.Stop()
|
||||||
delete(a.checkTTLs, checkID)
|
delete(a.checkTTLs, checkID)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user