diff --git a/test/performance/latency/LatencyTestSubscriber.cpp b/test/performance/latency/LatencyTestSubscriber.cpp index 5fcffcfe673..dae6900b0a3 100644 --- a/test/performance/latency/LatencyTestSubscriber.cpp +++ b/test/performance/latency/LatencyTestSubscriber.cpp @@ -600,7 +600,10 @@ void LatencyTestSubscriber::LatencyDataReaderListener::on_data_available( if (sub->echo_) { // no bounce overload recorded - reinterpret_cast(data)->bounce = 0; + if (!sub->dynamic_types_) + { + reinterpret_cast(data)->bounce = 0; + } if (!sub->data_writer_->write(data)) {