File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
core/kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/channels Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,15 +22,15 @@ import kotlin.coroutines.experimental.CoroutineContext
22
22
23
23
internal open class ChannelCoroutine <E >(
24
24
parentContext : CoroutineContext ,
25
- channel : Channel <E >,
25
+ private val _channel : Channel <E >,
26
26
active : Boolean
27
- ) : AbstractCoroutine<Unit>(parentContext, active), Channel<E> by channel {
27
+ ) : AbstractCoroutine<Unit>(parentContext, active), Channel<E> by _channel {
28
28
val channel: Channel <E >
29
29
get() = this
30
30
31
31
override fun onCancellation (exceptionally : CompletedExceptionally ? ) {
32
32
val cause = exceptionally?.cause
33
- if (! close (cause) && cause != null )
33
+ if (! _channel .cancel (cause) && cause != null )
34
34
handleCoroutineException(context, cause)
35
35
}
36
36
You can’t perform that action at this time.
0 commit comments