Skip to content
Snippets Groups Projects
Commit b1e27f43 authored by Beat Küng's avatar Beat Küng Committed by Lorenz Meier
Browse files

simulator: handle ctrl-c during startup correctly

This makes sure the px4 process does not hang when Ctrl-C is pressed
during startup.
parent 9597e708
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment