commit | c8b679180d3ad5def791799c6cb3e2d2a45db138 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri May 01 18:29:57 2015 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri May 01 20:16:28 2015 +0200 |
tree | f99bf211da620487dc0474b5f7e758b44283ce34 | |
parent | edaff0a8f5bc001c9ddedf09a2b47746e3333138 [diff] |
MINOR: stick-table: don't attach to peers in stopped state This will be used to disable peers sections.
diff --git a/src/stick_table.c b/src/stick_table.c index 4459f46..8ebaa66 100644 --- a/src/stick_table.c +++ b/src/stick_table.c
@@ -396,7 +396,7 @@ 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); }