Skip to content

Commit

Permalink
Fix failing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwbrei committed Sep 15, 2024
1 parent 739cec2 commit ad4eb31
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/libraries/JANA/JService.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,19 @@ void JService::DoInit(JServiceLocator* sl) {
std::lock_guard<std::mutex> lock(m_mutex);
if (this->m_status != Status::Uninitialized) return;

auto params = m_app->GetJParameterManager();
m_logger = params->GetLogger(GetLoggerName());
if (m_app != nullptr) {

for (auto* parameter : m_parameters) {
parameter->Configure(*params, m_prefix);
}
auto params = m_app->GetJParameterManager();
m_logger = params->GetLogger(GetLoggerName());

for (auto* service : m_services) {
service->Fetch(m_app);
}
for (auto* parameter : m_parameters) {
parameter->Configure(*params, m_prefix);
}

for (auto* service : m_services) {
service->Fetch(m_app);
}
}

CallWithJExceptionWrapper("JService::acquire_services", [&](){ this->acquire_services(sl); });
CallWithJExceptionWrapper("JService::Init", [&](){ this->Init(); });
Expand Down

0 comments on commit ad4eb31

Please sign in to comment.