diff --git a/src/input/JoystickInput.cc b/src/input/JoystickInput.cc index 0e7dea9a3b1dd8a954f5f79536363e8bcb449b80..121a0d16d49b6f532911de8a6c2f761ac4f8f9de 100644 --- a/src/input/JoystickInput.cc +++ b/src/input/JoystickInput.cc @@ -50,10 +50,7 @@ JoystickInput::JoystickInput() : JoystickInput::~JoystickInput() { done = true; - while (done) - { - QGC::SLEEP::usleep(5000); - } + QGC::SLEEP::usleep(50000); this->deleteLater(); }