Index: webrtc/p2p/base/p2ptransportchannel.cc |
diff --git a/webrtc/p2p/base/p2ptransportchannel.cc b/webrtc/p2p/base/p2ptransportchannel.cc |
index d83726eab5a5b53c1af9edbda62f93907ac5e22c..16b193ad435499fb8c941217d735115a0b87096d 100644 |
--- a/webrtc/p2p/base/p2ptransportchannel.cc |
+++ b/webrtc/p2p/base/p2ptransportchannel.cc |
@@ -1363,6 +1363,11 @@ bool P2PTransportChannel::IsPingable(Connection* conn, int64_t now) { |
return false; |
} |
+ // A failed connection will not be pinged. |
+ if (conn->state() == Connection::STATE_FAILED) { |
+ return false; |
+ } |
+ |
// An never connected connection cannot be written to at all, so pinging is |
// out of the question. However, if it has become WRITABLE, it is in the |
// reconnecting state so ping is needed. |