Return if innactive

This commit is contained in:
Atlante45 2015-10-06 16:38:16 -07:00
parent ca575bee89
commit 3a8deff53e

View file

@ -278,7 +278,7 @@ void SendQueue::run() {
// Either _isRunning will have been set to false and we'll break // Either _isRunning will have been set to false and we'll break
// Or something happened and we'll keep going // Or something happened and we'll keep going
if (_state != State::Running || isInactive(sentAPacket)) { if (_state != State::Running || isInactive(sentAPacket)) {
continue; return;
} }
// sleep as long as we need until next packet send, if we can // sleep as long as we need until next packet send, if we can
@ -398,7 +398,6 @@ bool SendQueue::isInactive(bool sentAPacket) {
#endif #endif
deactivate(); deactivate();
return true; return true;
} }
@ -456,9 +455,6 @@ bool SendQueue::isInactive(bool sentAPacket) {
_naks.append(SequenceNumber(_lastACKSequenceNumber) + 1, _currentSequenceNumber); _naks.append(SequenceNumber(_lastACKSequenceNumber) + 1, _currentSequenceNumber);
} }
} }
// skip to the next iteration
return true;
} }
} }
} }