mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-07 07:55:04 -05:00
Fixed initialization, no need init logs and network if configuration not ready.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user