1
0
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:
James Cotton 2012-08-25 23:44:58 -05:00
parent 144fea1bd1
commit 001c43c090

View File

@ -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()