bug 459: Simulator::Run does nothing after Simulator::Stop is called

This commit is contained in:
Mathieu Lacage
2009-01-09 08:54:32 +01:00
parent 4bdb706cf0
commit 74f2de296c
2 changed files with 2 additions and 1 deletions

View File

@@ -144,7 +144,7 @@ DefaultSimulatorImpl::Next (void) const
void
DefaultSimulatorImpl::Run (void)
{
m_stop = false;
while (!m_events->IsEmpty () && !m_stop)
{
ProcessOneEvent ();

View File

@@ -421,6 +421,7 @@ RealtimeSimulatorImpl::Run (void)
NS_ASSERT_MSG (m_running == false,
"RealtimeSimulatorImpl::Run(): Simulator already running");
m_stop = false;
m_running = true;
m_synchronizer->SetOrigin (m_currentTs);