Removing assert error when we fail to create a connection for a ping from an unknown address.
It may happen in some legitimate scenarios. For example a turn port may have had a refresh request timeout, so it won't create a new connection for a ping from an unknown address. R=deadbeef@webrtc.org Review URL: https://codereview.webrtc.org/2327233002 . Cr-Commit-Position: refs/heads/master@{#14173}
This commit is contained in:
parent
ed0b0dba15
commit
d5fff5040c
@ -648,7 +648,8 @@ void P2PTransportChannel::OnUnknownAddress(
|
||||
Connection* connection =
|
||||
port->CreateConnection(remote_candidate, PortInterface::ORIGIN_THIS_PORT);
|
||||
if (!connection) {
|
||||
ASSERT(false);
|
||||
// This could happen in some scenarios. For example, a TurnPort may have
|
||||
// had a refresh request timeout, so it won't create connections.
|
||||
port->SendBindingErrorResponse(stun_msg, address, STUN_ERROR_SERVER_ERROR,
|
||||
STUN_ERROR_REASON_SERVER_ERROR);
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user