fix for getRandomServer()

This commit is contained in:
lucretius
2024-01-21 13:17:00 +01:00
parent 95090a90ad
commit 366f6e24bc

View File

@@ -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;
}