From 0b9ef7e514291b94a87705ccf33428c49b6c40ef Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 17 Jun 2019 18:18:58 +0200 Subject: [PATCH] Disable broadcast if TRACY_NO_BROADCAST is defined. --- client/TracyProfiler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 991efa78..268a1fbd 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -1091,6 +1091,7 @@ void Profiler::Worker() } } +#ifndef TRACY_NO_BROADCAST m_broadcast = (UdpBroadcast*)tracy_malloc( sizeof( UdpBroadcast ) ); new(m_broadcast) UdpBroadcast(); if( !m_broadcast->Open( "255.255.255.255", "8087" ) ) @@ -1099,6 +1100,7 @@ void Profiler::Worker() tracy_free( m_broadcast ); m_broadcast = nullptr; } +#endif // Connections loop. // Each iteration of the loop handles whole connection. Multiple iterations will only