mirror of
https://github.com/xmrig/xmrig.git
synced 2025-01-10 21:04:37 +00:00
Ignore duplicated job received from pool, with warning message.
This commit is contained in:
parent
ad7c925a1a
commit
aadc15ce66
1 changed files with 5 additions and 0 deletions
|
@ -185,6 +185,11 @@ bool Client::parseJob(const json_t *params, int *code)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_job == job) {
|
||||||
|
LOG_WARN("[%s:%u] duplicate job received, ignore", m_url.host(), m_url.port());
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
m_job = std::move(job);
|
m_job = std::move(job);
|
||||||
|
|
||||||
LOG_DEBUG("[%s:%u] job: \"%s\", diff: %lld", m_url.host(), m_url.port(), job.id(), job.diff());
|
LOG_DEBUG("[%s:%u] job: \"%s\", diff: %lld", m_url.host(), m_url.port(), job.id(), job.diff());
|
||||||
|
|
Loading…
Reference in a new issue