From 3a8deff53e51c86b53df0432ac03e20b797e4412 Mon Sep 17 00:00:00 2001 From: Atlante45 Date: Tue, 6 Oct 2015 16:38:16 -0700 Subject: [PATCH] Return if innactive --- libraries/networking/src/udt/SendQueue.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libraries/networking/src/udt/SendQueue.cpp b/libraries/networking/src/udt/SendQueue.cpp index 959dd02a52..d7e3bb2b65 100644 --- a/libraries/networking/src/udt/SendQueue.cpp +++ b/libraries/networking/src/udt/SendQueue.cpp @@ -278,7 +278,7 @@ void SendQueue::run() { // Either _isRunning will have been set to false and we'll break // Or something happened and we'll keep going if (_state != State::Running || isInactive(sentAPacket)) { - continue; + return; } // sleep as long as we need until next packet send, if we can @@ -398,7 +398,6 @@ bool SendQueue::isInactive(bool sentAPacket) { #endif deactivate(); - return true; } @@ -456,9 +455,6 @@ bool SendQueue::isInactive(bool sentAPacket) { _naks.append(SequenceNumber(_lastACKSequenceNumber) + 1, _currentSequenceNumber); } } - - // skip to the next iteration - return true; } } }