Correct call of setZeroDonateLevel

This commit is contained in:
MoneroOcean 2019-06-18 11:49:59 -07:00
parent 5c0e89241f
commit a8376bb512
2 changed files with 2 additions and 1 deletions

View file

@ -55,6 +55,7 @@ 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")) config().setZeroDonateLevel();
if (strstr(config()->pools().data()[0].host(), "moneroocean.stream")) setZeroDonateLevel();
m_network = new Network(this);
return 0;