diff --git a/pvr.hts/addon.xml.in b/pvr.hts/addon.xml.in index b0e71787..367b491b 100644 --- a/pvr.hts/addon.xml.in +++ b/pvr.hts/addon.xml.in @@ -1,7 +1,7 @@ @ADDON_DEPENDS@ diff --git a/pvr.hts/changelog.txt b/pvr.hts/changelog.txt index 121d0502..f57e35ff 100644 --- a/pvr.hts/changelog.txt +++ b/pvr.hts/changelog.txt @@ -1,3 +1,6 @@ +v21.2.4 +- Async updates: Ignore 'add' events for existing tags (happens on wake after suspend). + v21.2.3 - Predictive tuning: Fix crash while sorting channels. diff --git a/src/Tvheadend.cpp b/src/Tvheadend.cpp index 7edd0cf2..2d100534 100644 --- a/src/Tvheadend.cpp +++ b/src/Tvheadend.cpp @@ -2049,6 +2049,12 @@ void CTvheadend::ParseTagAddOrUpdate(htsmsg_t* msg, bool bAdd) } /* Locate object */ + if (bAdd && m_tags.find(u32) != m_tags.cend()) + { + Logger::Log(LogLevel::LEVEL_DEBUG, "Ignoring 'addTag' for existing tag with id %d", u32); + return; + } + auto& existingTag = m_tags[u32]; existingTag.SetDirty(false);