bug 459: Simulator::Run does nothing after Simulator::Stop is called
This commit is contained in:
@@ -144,7 +144,7 @@ DefaultSimulatorImpl::Next (void) const
|
||||
void
|
||||
DefaultSimulatorImpl::Run (void)
|
||||
{
|
||||
|
||||
m_stop = false;
|
||||
while (!m_events->IsEmpty () && !m_stop)
|
||||
{
|
||||
ProcessOneEvent ();
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user