Check for a non-empty response from litelib_execute

This commit is contained in:
Duke
2023-03-26 15:15:57 -07:00
parent 51fe4d6cde
commit 7364e21f99
2 changed files with 3 additions and 3 deletions

View File

@@ -246,7 +246,7 @@ MainWindow::MainWindow(QWidget *parent) :
qDebug() << __func__ << ": caught an exception, ignoring: " << e.what();
}
if (reply.toUpper().trimmed() != "OK") {
if (reply.isEmpty()) {
qDebug() << "Lite server " << config->server << " is down, getting a random one";
config->server = Settings::getRandomServer();
qDebug() << __func__ << ": new server is " << config->server;