Ticket #13137: 20170929_exit_looping.patch

File 20170929_exit_looping.patch, 1010 bytes (added by Peter Bennett, 3 years ago)

Fix for the bug

  • mythtv/libs/libmythbase/mythcorecontext.cpp

    diff --git a/mythtv/libs/libmythbase/mythcorecontext.cpp b/mythtv/libs/libmythbase/mythcorecontext.cpp
    index bbcd468..fe33c54 100644
    a b bool MythCoreContext::ConnectToMasterServer(bool blockingClient, 
    349349                "to itself!");
    350350        return false;
    351351    }
     352    if (IsExiting())
     353        return false;
    352354
    353355    QString server = GetMasterServerIP();
    354356    if (server.isEmpty())
  • mythtv/programs/mythfrontend/main.cpp

    diff --git a/mythtv/programs/mythfrontend/main.cpp b/mythtv/programs/mythfrontend/main.cpp
    index f3b1741..654087d 100644
    a b int main(int argc, char **argv) 
    18751875    if (!gContext->Init(true, bPromptForBackend, bBypassAutoDiscovery))
    18761876    {
    18771877        LOG(VB_GENERAL, LOG_ERR, "Failed to init MythContext, exiting.");
     1878        gCoreContext->SetExiting(true);
    18781879        return GENERIC_EXIT_NO_MYTHCONTEXT;
    18791880    }
    18801881