Fixed initialization, no need init logs and network if configuration not ready.

This commit is contained in:
XMRig 2017-08-04 21:47:43 +03:00
parent 92d787c817
commit 1720d3e096
3 changed files with 12 additions and 5 deletions

View file

@ -59,6 +59,9 @@ App::App(int argc, char **argv) :
Cpu::init();
m_options = Options::parse(argc, argv);
if (!m_options) {
return;
}
Log::init();
@ -91,7 +94,7 @@ App::~App()
int App::exec()
{
if (!m_options->isReady()) {
if (!m_options) {
return 0;
}