Merge remote-tracking branch 'xmrig/master' into feature_cc
This commit is contained in:
commit
bb09944cb8
9 changed files with 32 additions and 7 deletions
|
@ -220,7 +220,8 @@ bool Client::parseJob(const rapidjson::Value ¶ms, int *code)
|
|||
}
|
||||
|
||||
if (m_job == job) {
|
||||
LOG_WARN("[%s:%u] duplicate job received, ignore", m_url.host(), m_url.port());
|
||||
LOG_WARN("[%s:%u] duplicate job received, reconnect", m_url.host(), m_url.port());
|
||||
close();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ public:
|
|||
}
|
||||
|
||||
const size_t size = strlen(id);
|
||||
if (size < 4 || size >= sizeof(m_data)) {
|
||||
if (size >= sizeof(m_data)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue