Index: webrtc/p2p/base/turnport.cc |
diff --git a/webrtc/p2p/base/turnport.cc b/webrtc/p2p/base/turnport.cc |
index 56dadde9bb1521845bfad4e43dc5e7bce5370c4f..e3caeb59d3e6b43c93310f10f25866aa45f47eea 100644 |
--- a/webrtc/p2p/base/turnport.cc |
+++ b/webrtc/p2p/base/turnport.cc |
@@ -376,7 +376,11 @@ bool TurnPort::CreateTurnClientSocket() { |
} |
void TurnPort::OnSocketConnect(rtc::AsyncPacketSocket* socket) { |
- RTC_DCHECK(server_address_.proto == PROTO_TCP); |
+ // This slot should only be invoked if we're using a connection-oriented |
+ // protocol. |
+ RTC_DCHECK(server_address_.proto == PROTO_TCP || |
+ server_address_.proto == PROTO_TLS); |
+ |
// Do not use this port if the socket bound to a different address than |
// the one we asked for. This is seen in Chrome, where TCP sockets cannot be |
// given a binding address, and the platform is expected to pick the |