From dc367e3ccd0e0f55d7ac953df8030319c4583e59 Mon Sep 17 00:00:00 2001 From: hai007 Date: Thu, 22 Apr 2021 11:38:37 -0700 Subject: [PATCH] Internal change PiperOrigin-RevId: 369915929 --- cpp/core/internal/mediums/webrtc/connection_flow.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpp/core/internal/mediums/webrtc/connection_flow.cc b/cpp/core/internal/mediums/webrtc/connection_flow.cc index ba02cc6d..fa77b416 100644 --- a/cpp/core/internal/mediums/webrtc/connection_flow.cc +++ b/cpp/core/internal/mediums/webrtc/connection_flow.cc @@ -535,7 +535,8 @@ bool ConnectionFlow::RunOnSignalingThread(Runnable&& runnable) { } bool ConnectionFlow::IsRunningOnSignalingThread() { - return signaling_thread_for_dcheck_only_ == rtc::Thread::Current(); + return signaling_thread_for_dcheck_only_ != nullptr && + signaling_thread_for_dcheck_only_ == rtc::Thread::Current(); } rtc::scoped_refptr