summaryrefslogtreecommitdiff
path: root/ospfd
diff options
context:
space:
mode:
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>2010-04-14 11:05:28 +0200
committerGreg Troxel <gdt@ir.bbn.com>2010-04-18 14:53:28 -0400
commit45acaa0a4cbb4b61c1e4cfcc8f8a534f4fdccfe5 (patch)
tree03c27c042be415bcec1d1f0922acf0dd424378b6 /ospfd
parent274d3f090df91fc5f8d4f26a2823634efa4af461 (diff)
ospfd: Make sure ospf_distribute_list_update_timer() eventually runs.
* ospf_zebra.c: (ospf_distribute_list_update_timer) If there are updates to the distribute list every 5 second or less, ospf_distribute_list_update_timer() will never run as the timer gets rearmed for each update. This fixes it by never rearming an active distribute list timer. Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/ospf_zebra.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c
index 90bee215..462f67c8 100644
--- a/ospfd/ospf_zebra.c
+++ b/ospfd/ospf_zebra.c
@@ -972,9 +972,9 @@ ospf_distribute_list_update (struct ospf *ospf, int type)
if (!(rt = EXTERNAL_INFO (type)))
return;
- /* If exists previously invoked thread, then cancel it. */
+ /* If exists previously invoked thread, then let it continue. */
if (ospf->t_distribute_update)
- OSPF_TIMER_OFF (ospf->t_distribute_update);
+ return;
/* Set timer. */
ospf->t_distribute_update =