File tree 2 files changed +2
-2
lines changed
kotlinx-coroutines-core/common/src
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>(
179
179
if (job != null && ! job.isActive) {
180
180
val cause = job.getCancellationException()
181
181
cancelResult(state, cause)
182
- throw cause
182
+ throw recoverStackTrace( cause, this )
183
183
}
184
184
}
185
185
return getSuccessfulResult(state)
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ internal abstract class DispatchedTask<in T>(
229
229
if (job != null && ! job.isActive) {
230
230
val cause = job.getCancellationException()
231
231
cancelResult(state, cause)
232
- continuation.resumeWithException (cause)
232
+ continuation.resumeWithStackTrace (cause)
233
233
} else {
234
234
val exception = getExceptionalResult(state)
235
235
if (exception != null )
You can’t perform that action at this time.
0 commit comments