Don't query for available products when disabling product refresh

This commit is contained in:
Dan Paulat 2025-06-22 17:50:36 -05:00
parent a81d6f340d
commit ec06cc62e1

View file

@ -683,6 +683,8 @@ void RadarProductManager::EnableRefresh(common::RadarProductGroup group,
p->GetLevel3ProviderManager(product);
// Only enable refresh on available products
if (enabled)
{
boost::asio::post(
p->threadPool_,
[=, this]()
@ -707,6 +709,11 @@ void RadarProductManager::EnableRefresh(common::RadarProductGroup group,
}
});
}
else
{
p->EnableRefresh(uuid, {providerManager}, enabled);
}
}
}
void RadarProductManagerImpl::EnableRefresh(