diff --git a/platforms/common/include/px4_platform_common/app.h b/platforms/common/include/px4_platform_common/app.h index 6798356cfa81..0aac411ad184 100644 --- a/platforms/common/include/px4_platform_common/app.h +++ b/platforms/common/include/px4_platform_common/app.h @@ -56,7 +56,8 @@ class AppState bool isRunning() { return _isRunning; } void setRunning(bool running) { - if(running) _exitRequested = false; + if(running) { _exitRequested = false; } + _isRunning = running; }