|
Bugzilla – Full Text Bug Listing |
| Summary: | Simulator::Run does nothing after Simulator::Stop is called | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Mathieu Lacage <mathieu.lacage> |
| Component: | core | Assignee: | ns-bugs <ns-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | P5 | ||
| Version: | pre-release | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | allow calling Simulator::Run after Simulator::Stop is called. | ||
changeset a68a42e667f6 |
Created attachment 346 [details] allow calling Simulator::Run after Simulator::Stop is called. If I run this: Simulator::Stop (Seconds (1.0)); Simulator::Run (); std::cout << Simulator::Now () << std::endl; Simulator::Stop (Seconds (1.0)); Simulator::Run (); std::cout << Simulator::Now () << std::endl; I get: 1.0s 1.0s I expected to get: 1.0s 2.0s The attached patch gets me the expected output. I will check it in in a day or two.