add some brackets to make logic more clear

This commit is contained in:
Isaac Connor 2022-01-25 14:25:27 -05:00
parent c8c09e560f
commit 38da3b4d52
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ void RtpCtrlThread::Run() {
TimePoint last_receive = std::chrono::steady_clock::now(); TimePoint last_receive = std::chrono::steady_clock::now();
bool timeout = false; // used as a flag that we had a timeout, and then sent an RR to see if we wake back up. Real timeout will happen when this is true. bool timeout = false; // used as a flag that we had a timeout, and then sent an RR to see if we wake back up. Real timeout will happen when this is true.
while (!mTerminate && select.wait() >= 0) { while (!mTerminate && (select.wait() >= 0)) {
TimePoint now = std::chrono::steady_clock::now(); TimePoint now = std::chrono::steady_clock::now();
zm::Select::CommsList readable = select.getReadable(); zm::Select::CommsList readable = select.getReadable();
if ( readable.size() == 0 ) { if ( readable.size() == 0 ) {