Index: webrtc/modules/congestion_controller/send_side_congestion_controller.cc |
diff --git a/webrtc/modules/congestion_controller/send_side_congestion_controller.cc b/webrtc/modules/congestion_controller/send_side_congestion_controller.cc |
index 57e7685f88f52362de74e20ac300c41a09aa5c79..e5f7fb9c3a32c26ecdb7d7c8851bf514caa6ce66 100644 |
--- a/webrtc/modules/congestion_controller/send_side_congestion_controller.cc |
+++ b/webrtc/modules/congestion_controller/send_side_congestion_controller.cc |
@@ -101,7 +101,6 @@ SendSideCongestionController::SendSideCongestionController( |
min_bitrate_bps_(congestion_controller::GetMinBitrateBps()), |
delay_based_bwe_(new DelayBasedBwe(event_log_, clock_)) { |
delay_based_bwe_->SetMinBitrate(min_bitrate_bps_); |
- worker_thread_checker_.DetachFromThread(); |
} |
SendSideCongestionController::~SendSideCongestionController() {} |
@@ -273,7 +272,7 @@ void SendSideCongestionController::AddPacket( |
void SendSideCongestionController::OnTransportFeedback( |
const rtcp::TransportFeedback& feedback) { |
- RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
+ RTC_DCHECK_RUNS_SERIALIZED(&race_checker_); |
transport_feedback_adapter_.OnTransportFeedback(feedback); |
std::vector<PacketFeedback> feedback_vector = ReceivedPacketFeedbackVector( |
transport_feedback_adapter_.GetTransportFeedbackVector()); |
@@ -292,7 +291,7 @@ void SendSideCongestionController::OnTransportFeedback( |
std::vector<PacketFeedback> |
SendSideCongestionController::GetTransportFeedbackVector() const { |
- RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
+ RTC_DCHECK_RUNS_SERIALIZED(&race_checker_); |
return transport_feedback_adapter_.GetTransportFeedbackVector(); |
} |