Commit 2e7789d6 authored by nanthony21's avatar nanthony21

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.
parent 2569fef5
......@@ -1865,6 +1865,7 @@ void Vehicle::setActive(bool active)
{
if (_active != active) {
_active = active;
_startJoystick(false);
emit activeChanged(_active);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment