CCECProcessor::~CCECProcessor(void)
{
m_bStarted = false;
- StopThread(false);
-
- if (m_busScan)
- {
- m_busScan->StopThread();
- delete m_busScan;
- }
-
m_startCondition.Broadcast();
StopThread();
m_controller->CheckKeypressTimeout();
}
+ if (m_busScan)
+ {
+ m_busScan->StopThread();
+ delete m_busScan;
+ m_busScan = NULL;
+ }
+
if (m_communication)
m_communication->Close();