watchdog: initialize after config

This commit is contained in:
vaxerski 2023-09-29 17:04:20 +01:00
parent 9cc614d096
commit 27cd7ef0c9

View file

@ -77,8 +77,6 @@ CCompositor::CCompositor() {
setRandomSplash(); setRandomSplash();
Debug::log(LOG, "\nCurrent splash: {}\n\n", m_szCurrentSplash); Debug::log(LOG, "\nCurrent splash: {}\n\n", m_szCurrentSplash);
g_pWatchdog = std::make_unique<CWatchdog>();
} }
CCompositor::~CCompositor() { CCompositor::~CCompositor() {
@ -406,6 +404,7 @@ void CCompositor::initManagers(eManagersInitStage stage) {
g_pLayoutManager = std::make_unique<CLayoutManager>(); g_pLayoutManager = std::make_unique<CLayoutManager>();
g_pConfigManager->init(); g_pConfigManager->init();
g_pWatchdog = std::make_unique<CWatchdog>(); // requires config
} break; } break;
case STAGE_LATE: { case STAGE_LATE: {
Debug::log(LOG, "Creating the ThreadManager!"); Debug::log(LOG, "Creating the ThreadManager!");