| Index: webrtc/pc/peerconnection.cc
|
| diff --git a/webrtc/pc/peerconnection.cc b/webrtc/pc/peerconnection.cc
|
| index ba21429d8585fe1d43fe68b0f478c0a623eef89e..026ce08be65b158fba770fe86ce1ec1cf1435596 100644
|
| --- a/webrtc/pc/peerconnection.cc
|
| +++ b/webrtc/pc/peerconnection.cc
|
| @@ -1555,6 +1555,7 @@ void PeerConnection::Close() {
|
| stats_->UpdateStats(kStatsOutputLevelStandard);
|
|
|
| session_->Close();
|
| + event_log_.reset();
|
| }
|
|
|
| void PeerConnection::OnSessionStateChange(WebRtcSession* /*session*/,
|
| @@ -2570,10 +2571,15 @@ bool PeerConnection::ReconfigurePortAllocator_n(
|
|
|
| bool PeerConnection::StartRtcEventLog_w(rtc::PlatformFile file,
|
| int64_t max_size_bytes) {
|
| + if (!event_log_) {
|
| + return false;
|
| + }
|
| return event_log_->StartLogging(file, max_size_bytes);
|
| }
|
|
|
| void PeerConnection::StopRtcEventLog_w() {
|
| - event_log_->StopLogging();
|
| + if (event_log_) {
|
| + event_log_->StopLogging();
|
| + }
|
| }
|
| } // namespace webrtc
|
|
|