Add "autosave" config option.
This commit is contained in:
parent
a63677e255
commit
143da8380e
8 changed files with 36 additions and 13 deletions
|
@ -200,6 +200,10 @@ void Workers::start(xmrig::Controller *controller)
|
|||
m_workers.push_back(handle);
|
||||
handle->start(Workers::onReady);
|
||||
}
|
||||
|
||||
if (controller->config()->isShouldSave()) {
|
||||
controller->config()->save();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue