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;
}
while( m_sock->HasData() )
bool connActive = true;
while( m_sock->HasData() && connActive )
{
if( !HandleServerQuery() ) break;
connActive = HandleServerQuery();
}
if( !connActive ) break;
}
if( ShouldExit() ) break;