Job flow.

This commit is contained in:
XMRig 2017-06-10 13:32:27 +03:00
parent f9c244f0aa
commit bcef4b12ec
7 changed files with 45 additions and 8 deletions

View file

@ -22,6 +22,9 @@
*/
#include <utility>
#include "Console.h"
#include "interfaces/IClientListener.h"
#include "net/Client.h"
@ -168,7 +171,8 @@ bool Client::parseJob(const json_t *params, int *code)
return false;
}
m_job = job;
job.setPoolId(m_id);
m_job = std::move(job);
LOG_DEBUG("[%s:%u] job: \"%s\", diff: %lld", m_host, m_port, job.id(), job.diff());
return true;