eitd: -fix wakeup epg scan with max_events==0

This commit is contained in:
Jacek Jendrzej
2013-10-02 17:50:49 +02:00
parent f41cb76e01
commit 6321bd1810

View File

@@ -903,7 +903,7 @@ static void commandserviceChanged(int connfd, char *data, const unsigned dataLen
/* assume live demux always 0, other means background scan */
if (cmd->dnum) {
/* dont wakeup EIT, if we have max events allready */
if (max_events && (mySIeventsOrderUniqueKey.size() < max_events)) {
if (max_events == 0 || (mySIeventsOrderUniqueKey.size() < max_events)) {
threadEIT.setDemux(cmd->dnum);
threadEIT.setCurrentService(uniqueServiceKey);
}