Skip to content

Commit

Permalink
Merge pull request #665 from ksooo/fix-getchannelgroupmembers
Browse files Browse the repository at this point in the history
 Async updates: Ignore 'add' events for existing tags (happens on wake after suspend)
  • Loading branch information
ksooo authored May 26, 2024
2 parents 6c5564f + f6bbd98 commit fc5926c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pvr.hts/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.hts"
version="21.2.3"
version="21.2.4"
name="Tvheadend HTSP Client"
provider-name="Adam Sutton, Sam Stenvall, Lars Op den Kamp, Kai Sommerfeld">
<requires>@ADDON_DEPENDS@</requires>
Expand Down
3 changes: 3 additions & 0 deletions pvr.hts/changelog.txt
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
6 changes: 6 additions & 0 deletions src/Tvheadend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit fc5926c

Please sign in to comment.