DCHECK that we don't insert nullptr into event log.
BUG=None Review-Url: https://codereview.webrtc.org/2874753003 Cr-Commit-Position: refs/heads/master@{#18100}
This commit is contained in:
parent
2077f2f9fc
commit
8a329652de
@ -572,6 +572,8 @@ void RtcEventLogImpl::LogProbeResult(int id,
|
||||
}
|
||||
|
||||
void RtcEventLogImpl::StoreEvent(std::unique_ptr<rtclog::Event>* event) {
|
||||
RTC_DCHECK(event != nullptr);
|
||||
RTC_DCHECK(event->get() != nullptr);
|
||||
if (!event_queue_.Insert(event)) {
|
||||
LOG(LS_ERROR) << "WebRTC event log queue full. Dropping event.";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user