small logic cleanup

This commit is contained in:
Peter Thorson
2013-04-23 13:28:54 -05:00
parent fbdc122774
commit 04244da3f9

View File

@@ -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("");