Skip to content

Commit

Permalink
Refs #9761. Check to see if m_checkAvailabilityTimerId=0 before killi…
Browse files Browse the repository at this point in the history
…ng it.

Prevents the frontend issuing the following error message.
"Application asked to unregister timer 0x0 which is not registered in this
thread. Fix application."

Thanks to Jonatan for the patch.

Stuart
  • Loading branch information
stuarta committed May 5, 2011
1 parent e751ba6 commit 16775c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/programs/mythfrontend/playbackboxhelper.cpp
Expand Up @@ -104,7 +104,7 @@ AvailableStatusType PBHEventHandler::CheckAvailability(const QStringList &slist)
m_checkAvailability.find(evinfo.MakeUniqueKey());
if (it != m_checkAvailability.end())
m_checkAvailability.erase(it);
if (m_checkAvailability.empty())
if (m_checkAvailability.empty() && m_checkAvailabilityTimerId)
killTimer(m_checkAvailabilityTimerId);
}

Expand Down

0 comments on commit 16775c5

Please sign in to comment.