credits: @ksooo
* LibCecTray: keypress not sent when multiple instances of eshell.exe are
running. thanks @pvanbaren
+ * deadlock on exit in XBMC, because of CEC_ALERT_CONNECTION_LOST
-- Pulse-Eight Packaging <packaging@pulse-eight.com> Tue, 28 Oct 2014 10:45:00 +0200
credits: @ksooo
* LibCecTray: keypress not sent when multiple instances of eshell.exe are
running. thanks @pvanbaren
+ * deadlock on exit in XBMC, because of CEC_ALERT_CONNECTION_LOST
-- Pulse-Eight Packaging <packaging@pulse-eight.com> Tue, 28 Oct 2014 10:45:00 +0200
/* send a ping to the adapter */
bool bPinged(false);
int iFailedCounter(0);
- while (!bPinged && iFailedCounter < 3)
+ while (!bPinged && iFailedCounter < 3 && !IsStopped())
{
if (!m_com->PingAdapter())
{
}
}
- if (iFailedCounter == 3)
+ if (iFailedCounter == 3 && !IsStopped())
{
/* failed to ping the adapter 3 times in a row. something must be wrong with the connection */
m_com->LIB_CEC->AddLog(CEC_LOG_ERROR, "failed to ping the adapter 3 times in a row. closing the connection.");