add some brackets to make logic more clear

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

View File

@ -279,7 +279,7 @@ void RtpCtrlThread::Run() {
time_t last_receive = time(nullptr);
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)) {
time_t now = time(nullptr);
ZM::Select::CommsList readable = select.getReadable();
if ( readable.size() == 0 ) {