fix for getRandomServer()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user