Bug 1659 - Simulator::Stop is behind Simulator::Run ();
Simulator::Stop is behind Simulator::Run ();
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: wifi
ns-3-dev
PC Linux
: P5 normal
Assigned To: Nicola Baldo
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-28 08:29 UTC by Junling Bu
Modified: 2013-04-30 09:11 UTC (History)
3 users (show)

See Also:


Attachments
simple patch for wifi-test.cc (681 bytes, patch)
2013-04-28 08:29 UTC, Junling Bu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Junling Bu 2013-04-28 08:29:48 UTC
Created attachment 1578 [details]
simple patch for wifi-test.cc

in src/wifi/test/wifi-test.cc line 144:
  Simulator::Run ();
  Simulator::Destroy ();

  Simulator::Stop (Seconds (10.0));

because event is not one by one ,so Simulator::Run () can quit naturally,
if sending packet repeatedly, here will be in endless loop.
Comment 1 Daniel L. 2013-04-30 09:11:24 UTC
fixed 9733:7eca59a61873