mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
GCS USB: Increase the max timeout before giving up on stopping the USB threads.
This commit is contained in:
parent
82f752685a
commit
9b7060a491
@ -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,7 +216,7 @@ RawHIDWriteThread::~RawHIDWriteThread()
|
||||
{
|
||||
m_running = false;
|
||||
//wait for the thread to terminate
|
||||
if(wait(1000) == false)
|
||||
if(wait(10000) == false)
|
||||
qDebug() << "Cannot terminate RawHIDReadThread";
|
||||
}
|
||||
|
||||
|
@ -456,7 +456,7 @@ void UploaderGadgetWidget::systemRescue()
|
||||
delete dfu;
|
||||
dfu = NULL;
|
||||
}
|
||||
// Avoid dumb users pressing Rescue twice. It can happen.
|
||||
// Avoid users pressing Rescue twice.
|
||||
m_config->rescueButton->setEnabled(false);
|
||||
|
||||
// Now we're good to go:
|
||||
|
Loading…
x
Reference in New Issue
Block a user