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

@@ -636,7 +636,7 @@ bool NewSeedPage::validatePage() {
// TODO: this is duplicated code that should be refactored
// into a dedicated function
if (reply.toUpper().trimmed() != "OK") {
if (reply.isEmpty()) {
qDebug() << "Lite server " << parent->server << " is down, getting a random one";
parent->server = Settings::getRandomServer();
qDebug() << __func__ << ": new server is " << parent->server;
@@ -771,7 +771,7 @@ bool RestoreSeedPage::validatePage() {
// TODO: this is duplicated code that should be refactored
// into a dedicated function
if (reply.toUpper().trimmed() != "OK") {
if (reply.isEmpty()) {
qDebug() << "Lite server " << parent->server << " is down, getting a random one";
parent->server = Settings::getRandomServer();
qDebug() << __func__ << ": new server is " << parent->server;