cec: don't return from the Close() method in CUSBCECAdapterCommunication, because...
authorLars Op den Kamp <lars@opdenkamp.eu>
Thu, 22 Mar 2012 13:55:25 +0000 (14:55 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Thu, 22 Mar 2012 13:55:25 +0000 (14:55 +0100)
src/lib/adapter/USBCECAdapterCommunication.cpp
src/lib/adapter/USBCECAdapterCommunication.h

index e092274457e05bec260b6bd5b27fe9d4150cf763..c97d9955f8d7855f5aa3b7249f6adf032548be3e 100644 (file)
@@ -77,11 +77,6 @@ CUSBCECAdapterCommunication::CUSBCECAdapterCommunication(CCECProcessor *processo
   m_port = new CSerialPort(strPort, iBaudRate);
 }
 
-CUSBCECAdapterCommunication::~CUSBCECAdapterCommunication(void)
-{
-  Close();
-}
-
 bool CUSBCECAdapterCommunication::CheckAdapter(uint32_t iTimeoutMs /* = 10000 */)
 {
   bool bReturn(false);
@@ -225,7 +220,7 @@ bool CUSBCECAdapterCommunication::Open(IAdapterCommunicationCallback *cb, uint32
 
 void CUSBCECAdapterCommunication::Close(void)
 {
-  StopThread();
+  StopThread(0);
 }
 
 void *CUSBCECAdapterCommunication::Process(void)
index bedd270cf0b7161ebd4db6ae6fb7ac8c3437271b..5db5a1a0674310a9b4fe94a9fc517fe211eea94f 100644 (file)
@@ -67,7 +67,7 @@ namespace CEC
   {
   public:
     CUSBCECAdapterCommunication(CCECProcessor *processor, const char *strPort, uint16_t iBaudRate = 38400);
-    virtual ~CUSBCECAdapterCommunication();
+    virtual ~CUSBCECAdapterCommunication() {};
 
     virtual bool Open(IAdapterCommunicationCallback *cb, uint32_t iTimeoutMs = 10000, bool bSkipChecks = false);
     virtual void Close(void);