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 13 matching lines...) Expand all Loading... | |
24 return ss.str(); | 24 return ss.str(); |
25 } | 25 } |
26 | 26 |
27 void TransportChannel::set_readable(bool readable) { | 27 void TransportChannel::set_readable(bool readable) { |
28 if (readable_ != readable) { | 28 if (readable_ != readable) { |
29 readable_ = readable; | 29 readable_ = readable; |
30 SignalReadableState(this); | 30 SignalReadableState(this); |
31 } | 31 } |
32 } | 32 } |
33 | 33 |
34 void TransportChannel::set_flaky(bool flaky) { | |
35 if (flaky_ != flaky) { | |
pthatcher1
2015/06/24 23:42:52
Please use an early return.
honghaiz3
2015/08/05 23:56:56
Done.
| |
36 flaky_ = flaky; | |
37 SignalFlakyState(this); | |
38 } | |
39 } | |
40 | |
34 void TransportChannel::set_writable(bool writable) { | 41 void TransportChannel::set_writable(bool writable) { |
35 if (writable_ != writable) { | 42 if (writable_ != writable) { |
36 LOG_J(LS_VERBOSE, this) << "set_writable from:" << writable_ << " to " | 43 LOG_J(LS_VERBOSE, this) << "set_writable from:" << writable_ << " to " |
37 << writable; | 44 << writable; |
38 writable_ = writable; | 45 writable_ = writable; |
39 if (writable_) { | 46 if (writable_) { |
40 SignalReadyToSend(this); | 47 SignalReadyToSend(this); |
41 } | 48 } |
42 SignalWritableState(this); | 49 SignalWritableState(this); |
43 } | 50 } |
44 } | 51 } |
45 | 52 |
46 } // namespace cricket | 53 } // namespace cricket |
OLD | NEW |