examples: Do not prematurely call Simulator::Destroy ()

This commit is contained in:
Tom Henderson
2016-08-25 10:03:34 -07:00
parent 5c2df9acbf
commit 5d3f2d42ae
3 changed files with 3 additions and 3 deletions

View File

@@ -527,7 +527,6 @@ int main (int argc, char *argv[])
Simulator::Stop (Seconds (simulationTime + 1));
Simulator::Run ();
Simulator::Destroy ();
double throughput = 0;
uint32_t totalPacketsThrough = 0;
@@ -563,6 +562,7 @@ int main (int argc, char *argv[])
std::setw (12) << "N/A" <<
std::endl;
}
Simulator::Destroy ();
}
return 0;
}

View File

@@ -589,7 +589,6 @@ int main (int argc, char *argv[])
Simulator::Stop (Seconds (simulationTime + 1));
Simulator::Run ();
Simulator::Destroy ();
double throughput = 0;
uint32_t totalPacketsThrough = 0;
@@ -625,6 +624,7 @@ int main (int argc, char *argv[])
std::setw (12) << "N/A" <<
std::endl;
}
Simulator::Destroy ();
}
return 0;
}

View File

@@ -686,7 +686,6 @@ int main (int argc, char *argv[])
Simulator::Stop (Seconds (simulationTime + 1));
Simulator::Run ();
Simulator::Destroy ();
double throughput;
uint32_t totalPacketsThrough;
@@ -699,6 +698,7 @@ int main (int argc, char *argv[])
std::setw (12) << throughput <<
std::setw (8) << totalPacketsThrough <<
std::endl;
Simulator::Destroy ();
}
return 0;
}