commit | 03967cd7bf9dddcf1affea3e5c8d4a21fe5e6f77 | [log] [tgz] |
---|---|---|
author | Elad Alon <eladalon@webrtc.org> | Tue Oct 10 17:23:53 2017 +0200 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Oct 10 17:19:18 2017 +0000 |
tree | 1d87771406d0b3f935a08701a5e992ffd9fb4dbb | |
parent | ebe36efad70d70848964a7d8349e71809f69093b [diff] |
RtcEventLogOutputFile needs to reset file_ whenever the file is not successfully opened RtcEventLogOutputFile needs to reset file_ whenever the file is not successfully opened. (The destructor DCHECKs that file_ only exists if it's active, so as to help maintain this.) Bug: webrtc:8111 Change-Id: I9a375a142af821b3c7183032f0b5d4d612dfa6b8 Reviewed-on: https://webrtc-review.googlesource.com/8080 Commit-Queue: Elad Alon <eladalon@webrtc.org> Reviewed-by: Björn Terelius <terelius@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20229}
diff --git a/logging/rtc_event_log/output/rtc_event_log_output_file.cc b/logging/rtc_event_log/output/rtc_event_log_output_file.cc index 2f8b81c..2e06a36 100644 --- a/logging/rtc_event_log/output/rtc_event_log_output_file.cc +++ b/logging/rtc_event_log/output/rtc_event_log_output_file.cc
@@ -55,8 +55,8 @@ // and needs to be closed. if (!rtc::ClosePlatformFile(file)) { LOG(LS_ERROR) << "Can't close file."; - file_.reset(); } + file_.reset(); return; }