Ticket #9732: mythtv-0.24.1.patch

File mythtv-0.24.1.patch, 958 bytes (added by jorcas33@…, 13 years ago)

patch on mythcontext.cpp

  • mythtv/libs/libmyth/mythcontext.cpp

    diff --git a/mythtv/libs/libmyth/mythcontext.cpp b/mythtv/libs/libmyth/mythcontext.cpp
    index 258da34..b9c414d 100644
    a b QString MythContextPrivate::TestDBconnection(void) 
    825825
    826826    if (!MSqlQuery::testDBConnection())
    827827    {
     828        // connection to DB failed, just try again after a few delay
     829        // just in case, the server is still booting
    828830        SilenceDBerrors();
    829         return QObject::tr("Cannot login to database?");
     831        VERBOSE(VB_IMPORTANT, ">>testDBConnection failed >> trying again after 10 seconds");
     832        sleep(10);
     833        if (!MSqlQuery::testDBConnection())
     834        {
     835            // there is really a problem, exit with error
     836            VERBOSE(VB_IMPORTANT, ">>testDBConnection failed again exiting");
     837            SilenceDBerrors();
     838            return QObject::tr("Cannot login to database?");
     839        }
    830840    }
    831841
    832842