Implemented reconnect.

This commit is contained in:
XMRig 2017-06-07 04:19:32 +03:00
parent b8cc1136a4
commit c29dc8bcf4
7 changed files with 40 additions and 7 deletions

View file

@ -65,6 +65,12 @@ void Network::connect()
}
void Network::onClose(Client *client, int failures)
{
LOG_DEBUG("CLOSE %d %d", client->id(), failures);
}
void Network::onJobReceived(Client *client, const Job &job)
{
@ -90,6 +96,7 @@ void Network::addPool(const Url *url)
Client *client = new Client(m_pools.size(), this);
client->setUrl(url);
client->setRetryPause(m_options->retryPause() * 1000);
m_pools.push_back(client);
}