repositories
/
deb_libcec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b5e433
)
cec: ensure that the connection is really closed before retrying to connect. bugzig...
author
Lars Op den Kamp
<lars@opdenkamp.eu>
Mon, 27 Feb 2012 19:57:41 +0000
(20:57 +0100)
committer
Lars Op den Kamp
<lars@opdenkamp.eu>
Mon, 27 Feb 2012 19:57:41 +0000
(20:57 +0100)
src/lib/CECProcessor.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/lib/CECProcessor.cpp
b/src/lib/CECProcessor.cpp
index a4bbcbc8e0b7ed0d6acb30f0190ed6f21b67a5dd..5b6fb033bebc3ceab5ea0984203b8c415a46046c 100644
(file)
--- a/
src/lib/CECProcessor.cpp
+++ b/
src/lib/CECProcessor.cpp
@@
-188,6
+188,7
@@
bool CCECProcessor::OpenConnection(const char *strPort, uint16_t iBaudRate, uint
while (timeout.TimeLeft() > 0 && (bReturn = m_communication->Open(this, (timeout.TimeLeft() / CEC_CONNECT_TRIES))) == false)
{
CLibCEC::AddLog(CEC_LOG_ERROR, "could not open a connection (try %d)", ++iConnectTry);
+ m_communication->Close();
Sleep(500);
}