mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-07-27 16:21:48 +03:00
Minor clean up
Summary: Minor clean up Reviewed By: mjoras Differential Revision: D35510673 fbshipit-source-id: fcd6982dd49a08ac2c9e2148b1cfd5beec9f49dd
This commit is contained in:
committed by
Facebook GitHub Bot
parent
6144ea1ded
commit
be0cd3dacc
@ -245,7 +245,7 @@ SchedulingResult FrameScheduler::scheduleFramesForPacket(
|
||||
rstWritten = rstScheduler_->writeRsts(wrapper);
|
||||
}
|
||||
// Long time ago we decided RST has higher priority than Acks.
|
||||
if (ackScheduler_ && ackScheduler_->hasPendingAcks()) {
|
||||
if (hasPendingAcks()) {
|
||||
if (cryptoDataWritten || rstWritten) {
|
||||
// If packet has non ack data, it is subject to congestion control. We
|
||||
// need to use the wrapper/
|
||||
@ -317,8 +317,7 @@ void FrameScheduler::writeNextAcks(PacketBuilderInterface& builder) {
|
||||
}
|
||||
|
||||
bool FrameScheduler::hasData() const {
|
||||
return (ackScheduler_ && ackScheduler_->hasPendingAcks()) ||
|
||||
hasImmediateData();
|
||||
return (hasPendingAcks()) || hasImmediateData();
|
||||
}
|
||||
|
||||
bool FrameScheduler::hasPendingAcks() const {
|
||||
|
Reference in New Issue
Block a user