Fix bug 362; cancel WaitReplyTimer when ArpCache is flushed
This commit is contained in:
1 parent
eae689e01f
commit
2a487f8202
2 files changed
+6
-1
No files matched your search
@@ -232,6 +232,11 @@ ArpCache::Flush (void)
|
||||
delete (*i).second;
|
||||
}
|
||||
m_arpCache.erase (m_arpCache.begin (), m_arpCache.end ());
|
||||
if (m_waitReplyTimer.IsRunning ())
|
||||
{
|
||||
NS_LOG_LOGIC ("Stopping WaitReplyTimer at " << Simulator::Now ().GetSeconds () << " due to ArpCache flush");
|
||||
m_waitReplyTimer.Cancel ();
|
||||
}
|
||||
}
|
||||
|
||||
ArpCache::Entry *
|
||||
|
||||
Reference in new issue
Block a user