Look for non-empty responses instead of the string "OK"
Only litelib_initialize_xxx functions return OK to say that the connection worked, others return actual JSON.
This commit is contained in:
@@ -368,7 +368,8 @@ void Executor::run()
|
|||||||
DEBUG("ignoring exception: " << e.what() );
|
DEBUG("ignoring exception: " << e.what() );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (response.toUpper().trimmed() != "OK") {
|
//TODO: we can do stricter error checking
|
||||||
|
if (response.isEmpty()) {
|
||||||
config->server = Settings::getRandomServer();
|
config->server = Settings::getRandomServer();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user