Verify that cpu_monitor exists before calling Stop().

R=pbos@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/25259004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@7795 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
asapersson@webrtc.org 2014-12-03 12:37:47 +00:00
parent c3e097cdc5
commit d8aed6b321

View File

@ -1178,7 +1178,9 @@ void WebRtcVideoEngine::Terminate() {
LOG_RTCERR0(SetVoiceEngine);
}
cpu_monitor_->Stop();
if (cpu_monitor_.get()) {
cpu_monitor_->Stop();
}
}
int WebRtcVideoEngine::GetCapabilities() {