simulator: handle ctrl-c during startup correctly

This makes sure the px4 process does not hang when Ctrl-C is pressed
during startup.
This commit is contained in:
Beat Küng
2017-03-09 11:58:36 +01:00
committed by Lorenz Meier
parent 9597e708df
commit b1e27f4395

View File

@@ -198,7 +198,7 @@ extern "C" {
argv);
// now wait for the command to complete
while (true) {
while (!px4_exit_requested()) {
if (Simulator::getInstance() && Simulator::getInstance()->isInitialized()) {
break;