diff options
Diffstat (limited to 'app/AglShellGrpcClient.cpp')
-rw-r--r-- | app/AglShellGrpcClient.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/AglShellGrpcClient.cpp b/app/AglShellGrpcClient.cpp index 8577f16..3c7471b 100644 --- a/app/AglShellGrpcClient.cpp +++ b/app/AglShellGrpcClient.cpp @@ -41,11 +41,11 @@ GrpcClient::WaitForConnected(int wait_time_ms, int tries_timeout) clock_gettime(CLOCK_MONOTONIC, &ts); ts.tv_sec = 0; - ts.tv_nsec = 500 * 1000 * 1000; // 500ms + ts.tv_nsec = wait_time_ms * 1000 * 1000; while (((state = m_channel->GetState(true)) != GRPC_CHANNEL_READY) && try_++ < tries_timeout) { - fprintf(stderr, "waiting for channel state to be ready, current state %d", state); + fprintf(stderr, "waiting for channel state to be ready, current state %d\n", state); nanosleep(&ts, NULL); } |