Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
miloit committed Mar 2, 2021
1 parent 5a1d472 commit 1eb0861
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/kodi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ void Kodi::getTVEPGfromTVHeadend() {
QJsonDocument doc = QJsonDocument::fromJson(answer.toUtf8(), &parseerror);
if (parseerror.error != QJsonParseError::NoError) {
qCWarning(m_logCategory) << "JSON error : " << parseerror.errorString();
m_flagLoadingEPG = false;
return;
}

Expand Down Expand Up @@ -1232,7 +1233,7 @@ void Kodi::onPollingEPGLoadTimerTimeout() {
QObject::connect(networkManagerTvHeadend, &QNetworkAccessManager::finished, this, [=](QNetworkReply* reply) {
if (!reply->error()) {
m_flagTVHeadendOnline = true;
if (!m_flagLoadingEPG) {
if (!m_flagLoadingEPG && m_mapKodiChannelNumberToTVHeadendUUID.count() > 0) {
getTVEPGfromTVHeadend();
m_flagLoadingEPG = true;
}
Expand Down

0 comments on commit 1eb0861

Please sign in to comment.