Commit 56dff8a2 authored by Sébastien Blin's avatar Sébastien Blin Committed by Adrien Béraud
Browse files

ice: register pjsip thread before add_stun_server

Change-Id: I01dd0de765cd2173fcdf472351a55ad941aca9c0
parent bd04887e
......@@ -284,6 +284,7 @@ IceTransport::Impl::Impl(const char* name, int component_count, bool master,
, initiatorSession_(master)
, thread_()
{
sip_utils::register_thread();
if (options.upnpEnable)
upnp_.reset(new upnp::Controller(false));
......@@ -312,7 +313,6 @@ IceTransport::Impl::Impl(const char* name, int component_count, bool master,
add_stun_server(config_, pj_AF_INET6());
add_stun_server(config_, pj_AF_INET());
sip_utils::register_thread();
pool_.reset(pj_pool_create(iceTransportFactory.getPoolFactory(),
"IceTransport.pool", 512, 512, NULL));
if (not pool_)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment