summaryrefslogtreecommitdiffstats
path: root/third_party/libwebrtc/examples/stunserver
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/libwebrtc/examples/stunserver')
-rw-r--r--third_party/libwebrtc/examples/stunserver/stunserver_main.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/third_party/libwebrtc/examples/stunserver/stunserver_main.cc b/third_party/libwebrtc/examples/stunserver/stunserver_main.cc
index 8180069bf0..ecf6c81ff1 100644
--- a/third_party/libwebrtc/examples/stunserver/stunserver_main.cc
+++ b/third_party/libwebrtc/examples/stunserver/stunserver_main.cc
@@ -29,7 +29,8 @@ int main(int argc, char* argv[]) {
return 1;
}
- rtc::Thread* pthMain = rtc::Thread::Current();
+ rtc::Thread* pthMain = rtc::ThreadManager::Instance()->WrapCurrentThread();
+ RTC_DCHECK(pthMain);
rtc::AsyncUDPSocket* server_socket =
rtc::AsyncUDPSocket::Create(pthMain->socketserver(), server_addr);