Browse Source

fix for getRandomServer()

pull/145/head
lucretius 3 months ago
parent
commit
366f6e24bc
  1. 6
      src/settings.cpp

6
src/settings.cpp

@ -342,8 +342,10 @@ QString Settings::getRandomServer() {
qDebug() << __func__ << ": caught an exception, ignoring: " << e.what();
}
// if we see a valid connection, return this server
if (response.toUpper().trimmed() == "OK") {
// if we see a valid connection, return this server. when the server is alive,
//it tries to read the wallet. This causes an error because it cannot find it (SDL only has a non-encrypted wallet.dat during storage processes)
// We can use that.
if (response.contains("Error: Cannot read wallet.")) {
qDebug() << "Choosing lite server " << server;
return server;
}

Loading…
Cancel
Save