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:
Duke
2023-03-26 15:09:45 -07:00
parent a080d0ca80
commit 51fe4d6cde

View File

@@ -368,7 +368,8 @@ void Executor::run()
DEBUG("ignoring exception: " << e.what() );
}
if (response.toUpper().trimmed() != "OK") {
//TODO: we can do stricter error checking
if (response.isEmpty()) {
config->server = Settings::getRandomServer();
try {