add some brackets to make logic more clear
This commit is contained in:
parent
c8c09e560f
commit
38da3b4d52
|
@ -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 ) {
|
||||||
|
|
Loading…
Reference in New Issue