mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-17 02:52:12 +01:00
Increase timeout to shut down the telemetry threads. Might fix some OSX USB related crashes.
This commit is contained in:
parent
144fea1bd1
commit
001c43c090
@ -144,7 +144,7 @@ RawHIDReadThread::~RawHIDReadThread()
|
||||
{
|
||||
m_running = false;
|
||||
//wait for the thread to terminate
|
||||
if(wait(1000) == false)
|
||||
if(wait(10000) == false)
|
||||
qDebug() << "Cannot terminate RawHIDReadThread";
|
||||
}
|
||||
|
||||
@ -216,8 +216,8 @@ RawHIDWriteThread::~RawHIDWriteThread()
|
||||
{
|
||||
m_running = false;
|
||||
//wait for the thread to terminate
|
||||
if(wait(1000) == false)
|
||||
qDebug() << "Cannot terminate RawHIDReadThread";
|
||||
if(wait(10000) == false)
|
||||
qDebug() << "Cannot terminate RawHIDWriteThread";
|
||||
}
|
||||
|
||||
void RawHIDWriteThread::run()
|
||||
|
Loading…
x
Reference in New Issue
Block a user