Improve readability in GoogCcNetworkController::OnSentPacket

Bug: None
Change-Id: Iff8a73611982506d44ac6818300663c3a4ac49b6
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/155177
Reviewed-by: Sebastian Jansson <srte@webrtc.org>
Commit-Queue: Elad Alon <eladalon@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#29363}
This commit is contained in:
Elad Alon
2019-10-01 17:53:54 +02:00
committed by Commit Bot
parent 9d7eb28f72
commit fddbe6c632

View File

@ -250,14 +250,10 @@ NetworkControlUpdate GoogCcNetworkController::OnSentPacket(
TimeDelta::Zero());
}
bandwidth_estimation_->OnSentPacket(sent_packet);
bool network_changed = false;
if (congestion_window_pushback_controller_) {
congestion_window_pushback_controller_->UpdateOutstandingData(
sent_packet.data_in_flight.bytes());
network_changed = true;
}
if (network_changed) {
NetworkControlUpdate update;
MaybeTriggerOnNetworkChanged(&update, sent_packet.send_time);
return update;