IVGCVSW-5170 Do not resend timeline data if TimelineReporting is already enabled

Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Change-Id: I79f19dd1c1b66d199008c0010c33b5a55e0e89f2
diff --git a/src/profiling/ActivateTimelineReportingCommandHandler.cpp b/src/profiling/ActivateTimelineReportingCommandHandler.cpp
index 614417c..6d5f32f 100644
--- a/src/profiling/ActivateTimelineReportingCommandHandler.cpp
+++ b/src/profiling/ActivateTimelineReportingCommandHandler.cpp
@@ -41,15 +41,18 @@
                                            + " id = " + std::to_string(packet.GetPacketId()));
             }
 
-            m_SendTimelinePacket.SendTimelineMessageDirectoryPackage();
+            if(!m_TimelineReporting)
+            {
+                m_SendTimelinePacket.SendTimelineMessageDirectoryPackage();
 
-            TimelineUtilityMethods::SendWellKnownLabelsAndEventClasses(m_SendTimelinePacket);
+                TimelineUtilityMethods::SendWellKnownLabelsAndEventClasses(m_SendTimelinePacket);
 
-            m_TimelineReporting = true;
+                m_TimelineReporting = true;
 
-            m_ReportStructure.value().ReportStructure();
+                m_ReportStructure.value().ReportStructure();
 
-            m_BackendNotifier.NotifyBackendsForTimelineReporting();
+                m_BackendNotifier.NotifyBackendsForTimelineReporting();
+            }
 
             break;
         default: