File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
kotlinx-coroutines-core/common/src Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ internal open class CancellableContinuationImpl<in T>(
179179 if (job != null && ! job.isActive) {
180180 val cause = job.getCancellationException()
181181 cancelResult(state, cause)
182- throw cause
182+ throw recoverStackTrace( cause, this )
183183 }
184184 }
185185 return getSuccessfulResult(state)
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ internal abstract class DispatchedTask<in T>(
229229 if (job != null && ! job.isActive) {
230230 val cause = job.getCancellationException()
231231 cancelResult(state, cause)
232- continuation.resumeWithException (cause)
232+ continuation.resumeWithStackTrace (cause)
233233 } else {
234234 val exception = getExceptionalResult(state)
235235 if (exception != null )
You can’t perform that action at this time.
0 commit comments