OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 void TransportChannel::set_receiving(bool receiving) { | 26 void TransportChannel::set_receiving(bool receiving) { |
27 if (receiving_ == receiving) { | 27 if (receiving_ == receiving) { |
28 return; | 28 return; |
29 } | 29 } |
30 receiving_ = receiving; | 30 receiving_ = receiving; |
31 SignalReceivingState(this); | 31 SignalReceivingState(this); |
32 } | 32 } |
33 | 33 |
34 void TransportChannel::set_writable(bool writable) { | 34 void TransportChannel::set_writable(bool writable) { |
35 if (writable_ != writable) { | 35 if (writable_ == writable) { |
36 LOG_J(LS_VERBOSE, this) << "set_writable from:" << writable_ << " to " | 36 return; |
37 << writable; | |
38 writable_ = writable; | |
39 if (writable_) { | |
40 SignalReadyToSend(this); | |
41 } | |
42 SignalWritableState(this); | |
43 } | 37 } |
| 38 LOG_J(LS_VERBOSE, this) << "set_writable from:" << writable_ << " to " |
| 39 << writable; |
| 40 writable_ = writable; |
| 41 if (writable_) { |
| 42 SignalReadyToSend(this); |
| 43 } |
| 44 SignalWritableState(this); |
| 45 } |
| 46 |
| 47 void TransportChannel::set_dtls_state(DtlsTransportState state) { |
| 48 if (dtls_state_ == state) { |
| 49 return; |
| 50 } |
| 51 LOG_J(LS_VERBOSE, this) << "set_dtls_state from:" << dtls_state_ << " to " |
| 52 << state; |
| 53 dtls_state_ = state; |
| 54 SignalDtlsState(this); |
44 } | 55 } |
45 | 56 |
46 } // namespace cricket | 57 } // namespace cricket |
OLD | NEW |