Index: webrtc/api/java/jni/peerconnection_jni.cc |
diff --git a/webrtc/api/java/jni/peerconnection_jni.cc b/webrtc/api/java/jni/peerconnection_jni.cc |
index 85bd62d872210a178e00bc206b343b66da2037ff..079fd79c9b5479c9600626b2e19c37b3658eba03 100644 |
--- a/webrtc/api/java/jni/peerconnection_jni.cc |
+++ b/webrtc/api/java/jni/peerconnection_jni.cc |
@@ -1078,11 +1078,11 @@ void OwnedFactoryAndThreads::JavaCallbackOnFactoryThreads() { |
ScopedLocalRefFrame local_ref_frame(jni); |
jclass j_factory_class = FindClass(jni, "org/webrtc/PeerConnectionFactory"); |
jmethodID m = nullptr; |
- if (Thread::Current() == worker_thread_) { |
+ if (Thread::Current() == worker_thread_.get()) { |
LOG(LS_INFO) << "Worker thread JavaCallback"; |
m = GetStaticMethodID(jni, j_factory_class, "onWorkerThreadReady", "()V"); |
} |
- if (Thread::Current() == signaling_thread_) { |
+ if (Thread::Current() == signaling_thread_.get()) { |
LOG(LS_INFO) << "Signaling thread JavaCallback"; |
m = GetStaticMethodID( |
jni, j_factory_class, "onSignalingThreadReady", "()V"); |