Skip to content

Commit 9ef4e0c

Browse files
author
Sergey Mashkov
committed
IO: fix accidentally used tryResumeWithException
1 parent 4df720f commit 9ef4e0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/kotlinx-coroutines-io/src/main/kotlin/kotlinx/coroutines/experimental/io/ByteBufferChannel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1911,7 +1911,7 @@ internal class ByteBufferChannel(
19111911
c.resume(state.capacity.availableForRead > 0)
19121912
}
19131913

1914-
WriteOp.getAndSet(this, null)?.tryResumeWithException(cause ?:
1914+
WriteOp.getAndSet(this, null)?.resumeWithException(cause ?:
19151915
ClosedWriteChannelException(DEFAULT_CLOSE_MESSAGE))
19161916
}
19171917

0 commit comments

Comments
 (0)