diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2022-10-19 23:00:40 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2022-10-19 23:00:40 +0300 |
commit | 7eba104e127f3172722fa385b0e3e1fe9c220409 (patch) | |
tree | 39c2f5c68c05a95bf9e087b42fec05d16cdfaa15 | |
parent | e3eead78a83966e45f03d366134eb8d22abd65b0 (diff) |
Sleep in capture when waiting for connection.
-rw-r--r-- | capture/src/capture.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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() ) ); |