From 04244da3f9d8a3673a6d984f651b556d53ae7263 Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Tue, 23 Apr 2013 13:28:54 -0500 Subject: [PATCH] small logic cleanup --- examples/telemetry_client/telemetry_client.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/telemetry_client/telemetry_client.cpp b/examples/telemetry_client/telemetry_client.cpp index 301ef09074..ddd5363361 100644 --- a/examples/telemetry_client/telemetry_client.cpp +++ b/examples/telemetry_client/telemetry_client.cpp @@ -92,18 +92,18 @@ public: while(1) { { scoped_lock guard(m_lock); - // If the connection hasn't been opened yet wait a bit and try - // again - if (!m_open && !m_done) { - sleep(1); - continue; - } - // If the connection has been closed, stop generating telemetry // and exit. if (m_done) { break; } + + // If the connection hasn't been opened yet wait a bit and try + // again + if (!m_open) { + sleep(1); + continue; + } } val.str("");