diff --git a/src/libraries/JANA/JApplication.cc b/src/libraries/JANA/JApplication.cc index dc7e337f8..e3beba4bc 100644 --- a/src/libraries/JANA/JApplication.cc +++ b/src/libraries/JANA/JApplication.cc @@ -124,12 +124,12 @@ void JApplication::Initialize() { // Attach all plugins plugin_loader->attach_plugins(component_manager.get()); - // Resolve all event sources now that all plugins have been loaded - component_manager->resolve_event_sources(); - // Give all components a JApplication pointer and a logger component_manager->configure_components(); + // Resolve all event sources now that all plugins have been loaded + component_manager->resolve_event_sources(); + // Set desired nthreads. We parse the 'nthreads' parameter two different ways for backwards compatibility. m_desired_nthreads = 1; m_params->SetDefaultParameter("nthreads", m_desired_nthreads, "Desired number of worker threads, or 'Ncores' to use all available cores.");