CUSBCECAdapterCommunication::~CUSBCECAdapterCommunication(void)
{
Close();
-
- if (m_port)
- {
- delete m_port;
- m_port = NULL;
- }
}
bool CUSBCECAdapterCommunication::Open(uint32_t iTimeoutMs /* = 10000 */)
if (m_outBuffer.Pop(msg))
msg->condition.Broadcast();
+ if (m_port)
+ {
+ delete m_port;
+ m_port = NULL;
+ }
+
return NULL;
}