mirror of
https://github.com/LX3JL/xlxd.git
synced 2026-01-04 15:50:14 +01:00
fix occasional ambed crash when device fails init
This commit is contained in:
parent
adec5c8d14
commit
88ab5d4571
|
|
@ -52,6 +52,15 @@ CUsb3xxxInterface::CUsb3xxxInterface(uint32 uiVid, uint32 uiPid, const char *szD
|
||||||
|
|
||||||
CUsb3xxxInterface::~CUsb3xxxInterface()
|
CUsb3xxxInterface::~CUsb3xxxInterface()
|
||||||
{
|
{
|
||||||
|
// stop thread first
|
||||||
|
m_bStopThread = true;
|
||||||
|
if ( m_pThread != NULL )
|
||||||
|
{
|
||||||
|
m_pThread->join();
|
||||||
|
delete m_pThread;
|
||||||
|
m_pThread = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
// delete m_SpeechQueues
|
// delete m_SpeechQueues
|
||||||
for ( int i = 0; i < m_SpeechQueues.size(); i++ )
|
for ( int i = 0; i < m_SpeechQueues.size(); i++ )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue