Skip to content

Commit

Permalink
Async updates: Ignore 'add' events for existing tags (happens on wake…
Browse files Browse the repository at this point in the history
… after suspend).
  • Loading branch information
ksooo committed May 23, 2024
1 parent 6c5564f commit 7a6bbc3
Showing 1 changed file with 6 additions and 0 deletions.
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 7a6bbc3

Please sign in to comment.