Ticket #3280: ismasterbackend_checkbackend.patch

File ismasterbackend_checkbackend.patch, 559 bytes (added by anonymous, 12 years ago)
  • libs/libmyth/mythcontext.cpp

     
    10601065    QString myip = gContext->GetSetting("BackendServerIP");
    10611066    QString masterip = gContext->GetSetting("MasterServerIP");
    10621067
    1063     bool ismaster = false;
    1064 
    1065     if (masterip == myip)
    1066         ismaster = true;
    1067     return ismaster;
     1068    return (d->m_backend && (masterip == myip));
    10681069}
    10691070
    10701071bool MythContext::BackendIsRunning(void)