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);