X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2FCECProcessor.cpp;h=be14a0b837b22bd0dbdcaae8351b35f3ac66dd4c;hb=55c75e6e4bd3d1c44907b59768b891227bd8ab5a;hp=5ea6bd5de62d9501daded2a4b64db06d491781fb;hpb=7cc92235bb5794e28b7bdb6f057b9e6a4c160f2d;p=deb_libcec.git diff --git a/src/lib/CECProcessor.cpp b/src/lib/CECProcessor.cpp index 5ea6bd5..be14a0b 100644 --- a/src/lib/CECProcessor.cpp +++ b/src/lib/CECProcessor.cpp @@ -1509,9 +1509,9 @@ const char *CCECProcessor::ToString(const cec_server_version version) bool CCECProcessor::StartBootloader(const char *strPort /* = NULL */) { + bool bReturn(false); if (!m_communication && strPort) { - bool bReturn(false); IAdapterCommunication *comm = new CUSBCECAdapterCommunication(this, strPort); CTimeout timeout(CEC_DEFAULT_CONNECT_TIMEOUT); int iConnectTry(0); @@ -1530,8 +1530,12 @@ bool CCECProcessor::StartBootloader(const char *strPort /* = NULL */) } else { - return m_communication->StartBootloader(); + m_communication->StartBootloader(); + Close(); + bReturn = true; } + + return bReturn; } bool CCECProcessor::PingAdapter(void)