mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-02 21:30:25 -05:00
MINOR: stick-table: don't attach to peers in stopped state
This will be used to disable peers sections.
This commit is contained in:
parent
edaff0a8f5
commit
c8b679180d
1 changed files with 1 additions and 1 deletions
|
|
@ -396,7 +396,7 @@ int stktable_init(struct stktable *t)
|
|||
t->exp_task->expire = TICK_ETERNITY;
|
||||
t->exp_task->context = (void *)t;
|
||||
}
|
||||
if (t->peers.p && t->peers.p->peers_fe) {
|
||||
if (t->peers.p && t->peers.p->peers_fe && t->peers.p->peers_fe->state != PR_STSTOPPED) {
|
||||
peers_register_table(t->peers.p, t);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue