Remove bug causing unnecessary limit transmission
diff --git a/model/fw/dynamic-limits.cc b/model/fw/dynamic-limits.cc
index f20ff3a..a0274ed 100644
--- a/model/fw/dynamic-limits.cc
+++ b/model/fw/dynamic-limits.cc
@@ -84,8 +84,11 @@
{
if (m_pit != 0 && m_fib != 0)
{
- m_announceEvent = Simulator::Schedule (Seconds (1.0),
- &DynamicLimits::AnnounceLimits, this);
+ if (!m_announceEvent.IsRunning ())
+ {
+ m_announceEvent = Simulator::Schedule (Seconds (1.0),
+ &DynamicLimits::AnnounceLimits, this);
+ }
}
}
}