cec: sleep 5 ms in CUSBCECAdapterCommunication::Process() or other threads won't...
authorLars Op den Kamp <lars@opdenkamp.eu>
Thu, 29 Mar 2012 10:33:12 +0000 (12:33 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Thu, 29 Mar 2012 10:33:12 +0000 (12:33 +0200)
This reverts commit 8f611d9d36fc638b357f3eb687e32013d820ec6b.

src/lib/adapter/USBCECAdapterCommunication.cpp

index 8269d139885028dfe3d92955162667a0c754d2b4..527292acc9d12c8ade59cf3caad4d1e85ea8d7d9 100644 (file)
@@ -240,7 +240,10 @@ void *CUSBCECAdapterCommunication::Process(void)
     }
 
     if (!IsStopped())
+    {
+      Sleep(5);
       WriteNextCommand();
+    }
   }
 
   /* notify all threads that are waiting on messages to be sent */