Index: webrtc/api/peerconnectionfactory.cc |
diff --git a/webrtc/api/peerconnectionfactory.cc b/webrtc/api/peerconnectionfactory.cc |
index 5d8f79c40cc5b695a78baf310de861086aff99d2..8c8fb6f8c05b33cfcaf0eb81578f886fb81a716a 100644 |
--- a/webrtc/api/peerconnectionfactory.cc |
+++ b/webrtc/api/peerconnectionfactory.cc |
@@ -283,9 +283,7 @@ PeerConnectionFactory::CreatePeerConnection( |
allocator.reset(new cricket::BasicPortAllocator( |
default_network_manager_.get(), default_socket_factory_.get())); |
} |
- worker_thread_->Invoke<void>( |
- rtc::Bind(&cricket::PortAllocator::SetNetworkIgnoreMask, allocator.get(), |
- options_.network_ignore_mask)); |
+ allocator->SetNetworkIgnoreMask(options_.network_ignore_mask); |
rtc::scoped_refptr<PeerConnection> pc( |
new rtc::RefCountedObject<PeerConnection>(this)); |