Skip to content

Commit

Permalink
fix(balancer) ensure healthchecker is stopped on target event (#7408)
Browse files Browse the repository at this point in the history
  • Loading branch information
onematchfox authored Jul 8, 2021
1 parent fe34442 commit e229509
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kong/runloop/balancer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,8 @@ local function on_target_event(operation, target)
return
end

stop_healthchecker(balancer)

local new_balancer, err = create_balancer(upstream, true)
if not new_balancer then
return nil, err
Expand Down

0 comments on commit e229509

Please sign in to comment.