Browse Source

Since a new vehicle begins joystick polling when it becomes active it makes sense

that it should also end joystick polling when it becomes inactive. Otherwise we
may have stray threads hangin around.
QGC4.4
nanthony21 7 years ago
parent
commit
2e7789d6ad
  1. 1
      src/Vehicle/Vehicle.cc

1
src/Vehicle/Vehicle.cc

@ -1865,6 +1865,7 @@ void Vehicle::setActive(bool active)
{ {
if (_active != active) { if (_active != active) {
_active = active; _active = active;
_startJoystick(false);
emit activeChanged(_active); emit activeChanged(_active);
} }
} }

Loading…
Cancel
Save