Always apply congestion window in pacer.

A previous change caused a regression in the congestion window behavior.
This CL restores previous behavior.

Bug: webrtc:8415
Change-Id: Id2e42d66bcfb58780c98da2227da39b970f26f0e
Reviewed-on: https://webrtc-review.googlesource.com/79483
Reviewed-by: Ying Wang <yinwa@webrtc.org>
Commit-Queue: Sebastian Jansson <srte@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23428}
This commit is contained in:
Sebastian Jansson
2018-05-29 10:11:38 +02:00
committed by Commit Bot
parent 73771a893f
commit f4d0afbb94

View File

@ -213,11 +213,9 @@ ControlHandler::ControlHandler(NetworkChangedObserver* observer,
void ControlHandler::PostUpdates(NetworkControlUpdate update) {
RTC_DCHECK_CALLED_SEQUENTIALLY(&sequenced_checker_);
if (congestion_window_pushback_experiment_) {
if (update.congestion_window) {
congestion_window_ = update.congestion_window;
pacer_controller_->OnCongestionWindow(*update.congestion_window);
}
if (update.congestion_window) {
congestion_window_ = update.congestion_window;
pacer_controller_->OnCongestionWindow(*update.congestion_window);
}
if (update.pacer_config) {
pacer_controller_->OnPacerConfig(*update.pacer_config);