mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Disable broadcast if TRACY_NO_BROADCAST is defined.
This commit is contained in:
parent
e609c0fdce
commit
0b9ef7e514
@ -1091,6 +1091,7 @@ void Profiler::Worker()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef TRACY_NO_BROADCAST
|
||||||
m_broadcast = (UdpBroadcast*)tracy_malloc( sizeof( UdpBroadcast ) );
|
m_broadcast = (UdpBroadcast*)tracy_malloc( sizeof( UdpBroadcast ) );
|
||||||
new(m_broadcast) UdpBroadcast();
|
new(m_broadcast) UdpBroadcast();
|
||||||
if( !m_broadcast->Open( "255.255.255.255", "8087" ) )
|
if( !m_broadcast->Open( "255.255.255.255", "8087" ) )
|
||||||
@ -1099,6 +1100,7 @@ void Profiler::Worker()
|
|||||||
tracy_free( m_broadcast );
|
tracy_free( m_broadcast );
|
||||||
m_broadcast = nullptr;
|
m_broadcast = nullptr;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Connections loop.
|
// Connections loop.
|
||||||
// Each iteration of the loop handles whole connection. Multiple iterations will only
|
// Each iteration of the loop handles whole connection. Multiple iterations will only
|
||||||
|
Loading…
Reference in New Issue
Block a user