From 2f7de02746c8b1fbe4cc474a608eb257b4342adc Mon Sep 17 00:00:00 2001 From: LM Date: Fri, 13 Jan 2012 13:38:11 +0100 Subject: [PATCH] Not-so-clean threading fix, needs further inspection --- src/input/JoystickInput.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/input/JoystickInput.cc b/src/input/JoystickInput.cc index 0e7dea9a3..121a0d16d 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(); } -- 2.22.0