From 7eba104e127f3172722fa385b0e3e1fe9c220409 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 19 Oct 2022 22:00:40 +0200 Subject: [PATCH] Sleep in capture when waiting for connection. --- capture/src/capture.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/capture/src/capture.cpp b/capture/src/capture.cpp index 24b40dc6..0a49c3f2 100644 --- a/capture/src/capture.cpp +++ b/capture/src/capture.cpp @@ -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() ) );