mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Notify servers that client is no longer listening for connections.
This happens in these two cases: - The client is exiting. - A connection attempt is performed. This message type is indicated by negative time value.
This commit is contained in:
parent
5c826c2723
commit
593ce74042
@ -1373,6 +1373,11 @@ void Profiler::Worker()
|
||||
#ifndef TRACY_NO_EXIT
|
||||
if( !m_noExit && ShouldExit() )
|
||||
{
|
||||
if( m_broadcast )
|
||||
{
|
||||
broadcastMsg.activeTime = -1;
|
||||
m_broadcast->Send( broadcastPort, &broadcastMsg, broadcastLen );
|
||||
}
|
||||
m_shutdownFinished.store( true, std::memory_order_relaxed );
|
||||
return;
|
||||
}
|
||||
@ -1397,6 +1402,13 @@ void Profiler::Worker()
|
||||
}
|
||||
}
|
||||
|
||||
if( m_broadcast )
|
||||
{
|
||||
lastBroadcast = 0;
|
||||
broadcastMsg.activeTime = -1;
|
||||
m_broadcast->Send( broadcastPort, &broadcastMsg, broadcastLen );
|
||||
}
|
||||
|
||||
// Handshake
|
||||
{
|
||||
char shibboleth[HandshakeShibbolethSize];
|
||||
|
Loading…
Reference in New Issue
Block a user