Browse Source
This fixes a pure virtual method call exception during exit when a joystick is connected. The problem was that ~Joystick() waited for the thread to exit, while the thread called the virtual method _close(). But at this point the destructor of the derived class (JoystickSDL in my case) was already called. To resolve the problem a separate stop() method is added that is called before deleting the object.QGC4.4
3 changed files with 13 additions and 3 deletions
Loading…
Reference in new issue