cec: persist settings directly when they're changed, only persist settings that actua...
[deb_libcec.git] / src / lib / adapter / USBCECAdapterCommunication.cpp
index d98c20576adfbdd02acc14ba6b45eaf1f04ba645..ef80ed049731abe60fe886f67dcd91018a40ac89 100644 (file)
@@ -146,11 +146,6 @@ bool CUSBCECAdapterCommunication::Open(uint32_t iTimeoutMs /* = 10000 */, bool b
 
   if (!bConnectionOpened || !bStartListening)
     StopThread(0);
-  if (!bConnectionOpened)
-  {
-    delete m_port;
-    m_port = NULL;
-  }
 
   return bConnectionOpened;
 }