--- a/src/simulator/simulator.cc Tue Feb 26 01:23:27 2008 +0100
+++ b/src/simulator/simulator.cc Tue Feb 26 01:39:59 2008 +0100
@@ -124,6 +124,10 @@
ev->Invoke ();
}
}
+ while (!m_events->IsEmpty ())
+ {
+ EventId next = m_events->RemoveNext ();
+ }
delete m_events;
m_events = (Scheduler *)0xdeadbeaf;
}
@@ -1059,7 +1063,11 @@
Simulator::Run ();
Simulator::Destroy ();
-
+
+ Simulator::Schedule (Seconds (10.0), &SimulatorTests::baz1, this, 0);
+ Simulator::StopAt (Seconds (1.0));
+ Simulator::Run ();
+ Simulator::Destroy ();
return result;
}