From 0a831b87a075219bb643b0bf6a4db05caff9e529 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Thu, 10 Oct 2013 18:50:16 +0400 Subject: [PATCH] eitd/sectionsd.cpp: do not send EVT_EIT_COMPLETE, if scanning paused --- src/eitd/sectionsd.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/eitd/sectionsd.cpp b/src/eitd/sectionsd.cpp index 5515c0c0b..964974068 100644 --- a/src/eitd/sectionsd.cpp +++ b/src/eitd/sectionsd.cpp @@ -1701,10 +1701,12 @@ void CEitThread::beforeSleep() writeLockMessaging(); messaging_zap_detected = false; unlockMessaging(); - eventServer->sendEvent(CSectionsdClient::EVT_EIT_COMPLETE, - CEventServer::INITID_SECTIONSD, - ¤t_service, - sizeof(messaging_current_servicekey)); + if (scanning) { + eventServer->sendEvent(CSectionsdClient::EVT_EIT_COMPLETE, + CEventServer::INITID_SECTIONSD, + ¤t_service, + sizeof(messaging_current_servicekey)); + } if(notify_complete) system(CONFIGDIR "/epgdone.sh"); }