| Index: webrtc/p2p/base/stunport.cc
|
| diff --git a/webrtc/p2p/base/stunport.cc b/webrtc/p2p/base/stunport.cc
|
| index 1598fe43cea80a91c98b897cf48cb19c07ef2638..c0a89751521f06d8759218231f501e0cbc4e579e 100644
|
| --- a/webrtc/p2p/base/stunport.cc
|
| +++ b/webrtc/p2p/base/stunport.cc
|
| @@ -116,7 +116,10 @@ UDPPort::AddressResolver::AddressResolver(
|
| UDPPort::AddressResolver::~AddressResolver() {
|
| for (ResolverMap::iterator it = resolvers_.begin();
|
| it != resolvers_.end(); ++it) {
|
| - it->second->Destroy(true);
|
| + // TODO(guoweis): Change to asynchronous DNS resolution to prevent the hang
|
| + // when passing true to the Destroy() which is a safer way to avoid the code
|
| + // unloaded before the thread exits. Please see webrtc bug 5139.
|
| + it->second->Destroy(false);
|
| }
|
| }
|
|
|
|
|