From f67a13af907fe217dfd863feb53a0782a799e255 Mon Sep 17 00:00:00 2001 From: "Liu, Kai1" Date: Tue, 17 Mar 2020 16:08:37 +0800 Subject: [PATCH 1/2] Remove complete_static_lib to fix build error of libowt.so --- BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BUILD.gn b/BUILD.gn index d23c209b580..4656f5fed74 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -419,7 +419,7 @@ if (!build_with_chromium) { visibility += [ "//talk/owt" ] } sources = [] - complete_static_lib = true + # complete_static_lib = true suppressed_configs += [ "//build/config/compiler:thin_archive" ] defines = [] From a54715f3bbb3a27440f3afd86bdeddf242b69953 Mon Sep 17 00:00:00 2001 From: "Liu, Kai1" Date: Mon, 17 Feb 2020 10:25:53 +0800 Subject: [PATCH 2/2] Fix pipe fd leak issue --- rtc_base/thread.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtc_base/thread.cc b/rtc_base/thread.cc index 20f58b2c819..3020292437a 100644 --- a/rtc_base/thread.cc +++ b/rtc_base/thread.cc @@ -82,8 +82,8 @@ Thread* Thread::Current() { #ifndef NO_MAIN_THREAD_WRAPPING // Only autowrap the thread which instantiated the ThreadManager. if (!thread && manager->IsMainThread()) { - thread = new Thread(SocketServer::CreateDefault()); - thread->WrapCurrentWithThreadManager(manager, true); + //thread = new Thread(SocketServer::CreateDefault()); + //thread->WrapCurrentWithThreadManager(manager, true); } #endif