diff --git a/mythtv/libs/libmyth/mythcontext.cpp b/mythtv/libs/libmyth/mythcontext.cpp
index 258da34..b9c414d 100644
|
a
|
b
|
QString MythContextPrivate::TestDBconnection(void)
|
| 825 | 825 | |
| 826 | 826 | if (!MSqlQuery::testDBConnection()) |
| 827 | 827 | { |
| | 828 | // connection to DB failed, just try again after a few delay |
| | 829 | // just in case, the server is still booting |
| 828 | 830 | 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 | } |
| 830 | 840 | } |
| 831 | 841 | |
| 832 | 842 | |