diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-03-28 12:15:24 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-03-28 12:15:24 -0700 |
| commit | 284e5d83b50dc99dbc916237f26915bcce745960 (patch) | |
| tree | 66dc6dd81fe5700eda0a25175c88ec37c41003b9 /node/Switch.hpp | |
| parent | 2b3e1d5c100914274706070bfcd3c688b7955655 (diff) | |
| download | infinitytier-284e5d83b50dc99dbc916237f26915bcce745960.tar.gz infinitytier-284e5d83b50dc99dbc916237f26915bcce745960.zip | |
Fix some broken TRACEs and a tiny reorder in a few ifs.
Diffstat (limited to 'node/Switch.hpp')
| -rw-r--r-- | node/Switch.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node/Switch.hpp b/node/Switch.hpp index 3ba2736d..219bfb41 100644 --- a/node/Switch.hpp +++ b/node/Switch.hpp @@ -191,10 +191,10 @@ private: unsigned long i = ZT_RX_QUEUE_SIZE; while (i) { rq = &(_rxQueue[--i]); - if (rq->timestamp < oldest->timestamp) - oldest = rq; if ((rq->packetId == packetId)&&(rq->timestamp)) return rq; + if (rq->timestamp < oldest->timestamp) + oldest = rq; } return oldest; } |
