diff --git a/src/App.cpp b/src/App.cpp index 39ec0d62e9..100d24833d 100644 --- a/src/App.cpp +++ b/src/App.cpp @@ -61,13 +61,13 @@ int xmrig::App::exec() return 2; } - m_signals = std::make_shared(this); - int rc = 0; if (background(rc)) { return rc; } + m_signals = std::make_shared(this); + rc = m_controller->init(); if (rc != 0) { return rc;