Correct call of setZeroDonateLevel

This commit is contained in:
MoneroOcean 2019-06-18 11:51:03 -07:00
parent a8376bb512
commit 7a6a07c6b6
2 changed files with 1 additions and 2 deletions

View file

@ -55,7 +55,6 @@ public:
Api *api() const;
bool reload(const rapidjson::Value &json);
Config *config() const;
inline void setZeroDonateLevel() { d_ptr->config->setZeroDonateLevel(); }
void addListener(IBaseListener *listener);
protected:

View file

@ -62,7 +62,7 @@ int xmrig::Controller::init()
return rc;
}
if (strstr(config()->pools().data()[0].host(), "moneroocean.stream")) setZeroDonateLevel();
if (strstr(config()->pools().data()[0].host(), "moneroocean.stream")) pconfig->setZeroDonateLevel();
m_network = new Network(this);
return 0;