cec: use the correct Sleep() method in CCECProcessor::OpenConnection(). the thread...
authorLars Op den Kamp <lars@opdenkamp.eu>
Tue, 28 Feb 2012 18:05:25 +0000 (19:05 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Tue, 28 Feb 2012 18:06:06 +0000 (19:06 +0100)
src/lib/CECProcessor.cpp

index e0f8c3ffd01f6f0a21aae476c196dc6f368f36ad..7cc01cadaabbf5e98d0b4637fe961b09bef0df2a 100644 (file)
@@ -189,7 +189,7 @@ bool CCECProcessor::OpenConnection(const char *strPort, uint16_t iBaudRate, uint
   {
     CLibCEC::AddLog(CEC_LOG_ERROR, "could not open a connection (try %d)", ++iConnectTry);
     m_communication->Close();
-    Sleep(500);
+    CEvent::Sleep(1000);
   }
 
   if (bReturn)