mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Send on-demand initial payload message.
This commit is contained in:
@@ -990,6 +990,12 @@ void Worker::Exec()
|
||||
char tmp[1024];
|
||||
sprintf( tmp, "%s @ %s", welcome.programName, dtmp );
|
||||
m_captureName = tmp;
|
||||
|
||||
if( welcome.onDemand != 0 )
|
||||
{
|
||||
OnDemandPayloadMessage onDemand;
|
||||
if( !m_sock.Read( &onDemand, sizeof( onDemand ), &tv, ShouldExit ) ) goto close;
|
||||
}
|
||||
}
|
||||
|
||||
m_hasData.store( true, std::memory_order_release );
|
||||
|
||||
Reference in New Issue
Block a user