Index: webrtc/p2p/base/transportcontroller.cc |
diff --git a/webrtc/p2p/base/transportcontroller.cc b/webrtc/p2p/base/transportcontroller.cc |
index 4a3a00e10f0e2831e4eefcf6bd53d229086b0d84..b9fb1d392b27fa362a6ae1f2d8d45df940d7c95d 100644 |
--- a/webrtc/p2p/base/transportcontroller.cc |
+++ b/webrtc/p2p/base/transportcontroller.cc |
@@ -227,6 +227,14 @@ void TransportController::SetMetricsObserver( |
metrics_observer)); |
} |
+TransportChannel* TransportController::CreateTransportChannel( |
+ const std::string& transport_name, |
+ int component) { |
+ return network_thread_->Invoke<TransportChannel*>( |
+ RTC_FROM_HERE, rtc::Bind(&TransportController::CreateTransportChannel_n, |
+ this, transport_name, component)); |
+} |
+ |
TransportChannel* TransportController::CreateTransportChannel_n( |
const std::string& transport_name, |
int component) { |
@@ -292,7 +300,6 @@ void TransportController::DestroyTransportChannel_n( |
const std::string& transport_name, |
int component) { |
RTC_DCHECK(network_thread_->IsCurrent()); |
- |
auto it = GetChannelIterator_n(transport_name, component); |
if (it == channels_.end()) { |
LOG(LS_WARNING) << "Attempting to delete " << transport_name |
@@ -313,7 +320,6 @@ void TransportController::DestroyTransportChannel_n( |
if (!t->HasChannels()) { |
transports_.erase(transport_name); |
} |
- |
// Removing a channel could cause aggregate state to change. |
UpdateAggregateStates_n(); |
} |