Silence primary pool errors if failover active.

This commit is contained in:
XMRig 2018-04-26 15:28:33 +07:00
parent 41e8c4f887
commit 2ddac1ce68
7 changed files with 22 additions and 15 deletions

View file

@ -57,7 +57,7 @@ Network::Network(xmrig::Controller *controller) :
m_strategy = new FailoverStrategy(pools, controller->config()->retryPause(), controller->config()->retries(), this);
}
else {
m_strategy = new SinglePoolStrategy(pools.front(), controller->config()->retryPause(), this);
m_strategy = new SinglePoolStrategy(pools.front(), controller->config()->retryPause(), controller->config()->retries(), this);
}
if (controller->config()->donateLevel() > 0) {