Fixed initialization, no need init logs and network if configuration not ready.
This commit is contained in:
parent
92d787c817
commit
1720d3e096
3 changed files with 12 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue