Skip to content

Commit

Permalink
Don't cache bad result in MythCoreContext::GetMasterHostName().
Browse files Browse the repository at this point in the history
In MythCoreContext::GetMasterHostName(), don't cache the result
value if SendReceiveStringList() fails.
(cherry picked from commit 946f6cc)
  • Loading branch information
cpinkham committed Jan 30, 2011
1 parent 06c8142 commit 38938b3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mythtv/libs/libmythdb/mythcorecontext.cpp
Expand Up @@ -613,9 +613,8 @@ QString MythCoreContext::GetMasterHostName(void)
{
QStringList strlist("QUERY_HOSTNAME");

SendReceiveStringList(strlist);

d->m_masterHostname = strlist[0];
if (SendReceiveStringList(strlist))
d->m_masterHostname = strlist[0];
}

QString ret = d->m_masterHostname;
Expand Down

0 comments on commit 38938b3

Please sign in to comment.