1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Implement socket read without exit check.

This commit is contained in:
Bartosz Taudul
2020-04-13 14:22:58 +02:00
parent e4ec666479
commit 1bbece649f
3 changed files with 15 additions and 5 deletions
+3 -5
View File
@@ -2313,17 +2313,15 @@ void Profiler::SendCallstackFrame( uint64_t ptr )
}
static bool DontExit() { return false; }
bool Profiler::HandleServerQuery()
{
uint8_t type;
uint64_t ptr;
uint32_t extra;
if( !m_sock->Read( &type, sizeof( type ), 10, DontExit ) ) return false;
if( !m_sock->Read( &ptr, sizeof( ptr ), 10, DontExit ) ) return false;
if( !m_sock->Read( &extra, sizeof( extra ), 10, DontExit ) ) return false;
if( !m_sock->Read( &type, sizeof( type ), 10 ) ) return false;
if( !m_sock->Read( &ptr, sizeof( ptr ), 10 ) ) return false;
if( !m_sock->Read( &extra, sizeof( extra ), 10 ) ) return false;
switch( type )
{