Fixed ContinuationImpl.intercepted

This commit is contained in:
Roman Elizarov
2018-06-28 17:26:11 +03:00
committed by Denis Zharkov
parent 7513557315
commit 0b17c619bc
@@ -97,7 +97,7 @@ internal abstract class ContinuationImpl protected constructor(
public fun intercepted(): Continuation<Any?> =
intercepted
?: (context[ContinuationInterceptor]?.interceptContinuation(this) ?: this)
.also { intercepted = this }
.also { intercepted = it }
protected override fun releaseIntercepted() {
val intercepted = intercepted