From 284e5d83b50dc99dbc916237f26915bcce745960 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 28 Mar 2016 12:15:24 -0700 Subject: Fix some broken TRACEs and a tiny reorder in a few ifs. --- node/Switch.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'node/Switch.hpp') 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; } -- cgit v1.2.3