From 2c363992af64a46c420df0bd58db04af52f83abe Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Wed, 16 Apr 2025 07:00:44 +0200 Subject: [PATCH] DPL GUI: do not sent any state when GUI is disabled --- Framework/Core/src/CommonServices.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Framework/Core/src/CommonServices.cxx b/Framework/Core/src/CommonServices.cxx index e13f1cb2094b7..5c333bbb85e3b 100644 --- a/Framework/Core/src/CommonServices.cxx +++ b/Framework/Core/src/CommonServices.cxx @@ -44,6 +44,7 @@ #include "Framework/DeviceConfig.h" #include "Framework/DefaultsHelpers.h" #include "Framework/Signpost.h" +#include "Framework/DriverConfig.h" #include "TextDriverClient.h" #include "WSDriverClient.h" @@ -800,6 +801,9 @@ auto sendRelayerMetrics(ServiceRegistryRef registry, DataProcessingStats& stats) auto flushStates(ServiceRegistryRef registry, DataProcessingStates& states) -> void { + if (!registry.get().driverHasGUI) { + return; + } states.flushChangedStates([&states, registry](std::string const& spec, int64_t timestamp, std::string_view value) mutable -> void { auto& client = registry.get(); client.push(spec, value, timestamp);