Do not initialize internal tracer if it has already been initialized.

Bug: b/68989834
Change-Id: I7bb02d58cef5c14c6433d1fc7a95b46ff2b27f6f
Reviewed-on: https://webrtc-review.googlesource.com/23280
Reviewed-by: Magnus Jedvert <magjed@webrtc.org>
Commit-Queue: Sami Kalliomäki <sakal@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#20696}
This commit is contained in:
Sami Kalliomäki
2017-11-15 14:15:24 +01:00
committed by Commit Bot
parent c48badaed6
commit 4e3832124f
4 changed files with 81 additions and 5 deletions

View File

@ -93,7 +93,7 @@ JNI_FUNCTION_DECLARATION(void,
}
JNI_FUNCTION_DECLARATION(void,
PeerConnectionFactory_initializeInternalTracer,
PeerConnectionFactory_nativeInitializeInternalTracer,
JNIEnv* jni,
jclass) {
rtc::tracing::SetupInternalTracer();
@ -132,7 +132,7 @@ JNI_FUNCTION_DECLARATION(void,
}
JNI_FUNCTION_DECLARATION(void,
PeerConnectionFactory_shutdownInternalTracer,
PeerConnectionFactory_nativeShutdownInternalTracer,
JNIEnv* jni,
jclass) {
rtc::tracing::ShutdownInternalTracer();