MINOR: stick-table: don't attach to peers in stopped state
This will be used to disable peers sections.
(cherry picked from commit c8b679180d3ad5def791799c6cb3e2d2a45db138)
diff --git a/src/stick_table.c b/src/stick_table.c
index d39b4ff..48d5710 100644
--- a/src/stick_table.c
+++ b/src/stick_table.c
@@ -395,7 +395,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);
}