Skip to content

Commit

Permalink
CHECK against overwrites in send_modules_map_
Browse files Browse the repository at this point in the history
No-try: true
Bug: chromium:1477075
Change-Id: Ia05a868bfab9e99ef66704e8d6bce516a7a43b0a
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/318440
Reviewed-by: Sergey Silkin <ssilkin@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#40673}
  • Loading branch information
Harald Alvestrand authored and WebRTC LUCI CQ committed Aug 31, 2023
1 parent 9acda0b commit 9d8fb97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/pacing/packet_router.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void PacketRouter::AddSendRtpModule(RtpRtcpInterface* rtp_module,
void PacketRouter::AddSendRtpModuleToMap(RtpRtcpInterface* rtp_module,
uint32_t ssrc) {
RTC_DCHECK_RUN_ON(&thread_checker_);
RTC_DCHECK(send_modules_map_.find(ssrc) == send_modules_map_.end());
RTC_CHECK(send_modules_map_.find(ssrc) == send_modules_map_.end());

// Signal to module that the pacer thread is attached and can send packets.
rtp_module->OnPacketSendingThreadSwitched();
Expand Down

0 comments on commit 9d8fb97

Please sign in to comment.