Stratum: better check of the login response

This commit is contained in:
SChernykh 2024-02-27 23:39:23 +01:00
parent f9c4c57216
commit b49197f808

View File

@ -609,6 +609,11 @@ bool xmrig::Client::parseLogin(const rapidjson::Value &result, int *code)
parseExtensions(result);
if (!result.HasMember("job")) {
*code = 2;
return false;
}
const bool rc = parseJob(result["job"], code);
m_jobs = 0;