| Index: webrtc/p2p/base/p2ptransportchannel.cc
|
| diff --git a/webrtc/p2p/base/p2ptransportchannel.cc b/webrtc/p2p/base/p2ptransportchannel.cc
|
| index 1484d17158545bb90fd6e0cee82fda43c5ed7ad2..46ed40ad76f9ced65929339594e5757ae435bb32 100644
|
| --- a/webrtc/p2p/base/p2ptransportchannel.cc
|
| +++ b/webrtc/p2p/base/p2ptransportchannel.cc
|
| @@ -359,10 +359,15 @@ void P2PTransportChannel::SetRemoteIceMode(IceMode mode) {
|
| remote_ice_mode_ = mode;
|
| }
|
|
|
| -void P2PTransportChannel::set_receiving_timeout(int receiving_timeout_ms) {
|
| +void P2PTransportChannel::SetReceivingTimeout(int receiving_timeout_ms) {
|
| + if (receiving_timeout_ms < 0) {
|
| + return;
|
| + }
|
| receiving_timeout_ = receiving_timeout_ms;
|
| check_receiving_delay_ =
|
| std::max(MIN_CHECK_RECEIVING_DELAY, receiving_timeout_ / 10);
|
| + LOG(LS_VERBOSE) << "Set ICE receiving timeout to " << receiving_timeout_
|
| + << " milliseconds";
|
| }
|
|
|
| // Go into the state of processing candidates, and running in general
|
|
|