Sleep in capture when waiting for connection.

This commit is contained in:
Bartosz Taudul 2022-10-19 22:00:40 +02:00
parent e3eead78a8
commit 7eba104e12
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -177,6 +177,7 @@ int main( int argc, char** argv )
printf( "\nThe client you are trying to connect to has disconnected during the initial\nconnection handshake. Please check your network configuration.\n" );
return 3;
}
std::this_thread::sleep_for( std::chrono::milliseconds( 100 ) );
}
while( !worker.HasData() ) std::this_thread::sleep_for( std::chrono::milliseconds( 100 ) );
printf( "\nQueue delay: %s\nTimer resolution: %s\n", tracy::TimeToString( worker.GetDelay() ), tracy::TimeToString( worker.GetResolution() ) );