Ticket #11133: backend-net-softfail.patch

File backend-net-softfail.patch, 1.2 KB (added by jcrews@…, 7 years ago)
  • mythtv/programs/mythbackend/mainserver.cpp

    diff --git a/mythtv/programs/mythbackend/mainserver.cpp b/mythtv/programs/mythbackend/mainserver.cpp
    index adad067..2f3c6f6 100644
    a b MainServer::MainServer(bool master, int port, 
    232232
    233233    mythserver = new MythServer();
    234234    mythserver->setProxy(QNetworkProxy::NoProxy);
    235     if (!mythserver->listen(port))
     235    if (!mythserver->listen(port, false))
    236236    {
    237237        SetExitCode(GENERIC_EXIT_SOCKET_ERROR, false);
    238238        return;
  • mythtv/programs/mythbackend/mediaserver.cpp

    diff --git a/mythtv/programs/mythbackend/mediaserver.cpp b/mythtv/programs/mythbackend/mediaserver.cpp
    index 043140d..948ad0a 100644
    a b void MediaServer::Init(bool bIsMaster, bool bDisableUPnp /* = false */) 
    8181    if (!m_pHttpServer->isListening())
    8282    {
    8383        m_pHttpServer->setProxy(QNetworkProxy::NoProxy);
    84         if (!m_pHttpServer->listen(nPort))
     84        if (!m_pHttpServer->listen(nPort, false))
    8585        {
    8686            LOG(VB_GENERAL, LOG_ERR, "MediaServer::HttpServer Create Error");
    8787            delete m_pHttpServer;