Fix clang-7 warnings

This commit is contained in:
Ivan Lezhankin 2019-02-05 13:19:34 +03:00
parent 994926e568
commit 8c640f54f8

View File

@ -1037,7 +1037,7 @@ private:
while (true) while (true)
{ {
Stopwatch watch(CLOCK_MONOTONIC_COARSE); Stopwatch receive_watch(CLOCK_MONOTONIC_COARSE);
while (true) while (true)
{ {
@ -1062,7 +1062,7 @@ private:
} }
else else
{ {
double elapsed = watch.elapsedSeconds(); double elapsed = receive_watch.elapsedSeconds();
if (elapsed > receive_timeout.totalSeconds()) if (elapsed > receive_timeout.totalSeconds())
{ {
std::cout << "Timeout exceeded while receiving data from server." std::cout << "Timeout exceeded while receiving data from server."