Index: webrtc/call/congestion_controller.cc |
diff --git a/webrtc/call/congestion_controller.cc b/webrtc/call/congestion_controller.cc |
index 0267d79fca11f43a5cbb1dffcd733e393dff3fc4..e548a96999c844a16bfc36a53ef39e34f6437a17 100644 |
--- a/webrtc/call/congestion_controller.cc |
+++ b/webrtc/call/congestion_controller.cc |
@@ -171,9 +171,9 @@ CongestionController::CongestionController(ProcessThread* process_thread, |
call_stats_->RegisterStatsObserver(remote_bitrate_estimator_.get()); |
pacer_thread_->RegisterModule(pacer_.get()); |
+ pacer_thread_->RegisterModule(remote_estimator_proxy_.get()); |
pacer_thread_->Start(); |
- process_thread->RegisterModule(remote_estimator_proxy_.get()); |
process_thread->RegisterModule(remote_bitrate_estimator_.get()); |
process_thread->RegisterModule(bitrate_controller_.get()); |
} |
@@ -181,9 +181,9 @@ CongestionController::CongestionController(ProcessThread* process_thread, |
CongestionController::~CongestionController() { |
pacer_thread_->Stop(); |
pacer_thread_->DeRegisterModule(pacer_.get()); |
+ pacer_thread_->DeRegisterModule(remote_estimator_proxy_.get()); |
process_thread_->DeRegisterModule(bitrate_controller_.get()); |
process_thread_->DeRegisterModule(remote_bitrate_estimator_.get()); |
- process_thread_->DeRegisterModule(remote_estimator_proxy_.get()); |
call_stats_->DeregisterStatsObserver(remote_bitrate_estimator_.get()); |
if (transport_feedback_adapter_.get()) |
call_stats_->DeregisterStatsObserver(transport_feedback_adapter_.get()); |