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

Immediately react to connection termination.

This commit is contained in:
Bartosz Taudul 2019-06-09 16:51:39 +02:00
parent cc5bad294a
commit 0db9c73d76

View File

@ -1224,10 +1224,12 @@ void Profiler::Worker()
keepAlive = 0; keepAlive = 0;
} }
while( m_sock->HasData() ) bool connActive = true;
while( m_sock->HasData() && connActive )
{ {
if( !HandleServerQuery() ) break; connActive = HandleServerQuery();
} }
if( !connActive ) break;
} }
if( ShouldExit() ) break; if( ShouldExit() ) break;