mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-22 19:49:36 +00:00
Merge pull request #3431 from SChernykh/dev
Stratum: better check of the login response
This commit is contained in:
commit
dd782c7001
1 changed files with 5 additions and 0 deletions
|
@ -609,6 +609,11 @@ bool xmrig::Client::parseLogin(const rapidjson::Value &result, int *code)
|
||||||
|
|
||||||
parseExtensions(result);
|
parseExtensions(result);
|
||||||
|
|
||||||
|
if (!result.HasMember("job")) {
|
||||||
|
*code = 2;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
const bool rc = parseJob(result["job"], code);
|
const bool rc = parseJob(result["job"], code);
|
||||||
m_jobs = 0;
|
m_jobs = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue