You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kotlinx-coroutines-io/kotlinx-coroutines-io-jvm/src/main/kotlin/kotlinx/coroutines/experimental/io/ByteBufferChannel.kt
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1826,7 +1826,9 @@ internal class ByteBufferChannel(
1826
1826
if (closed !=null|| state ===ReadWriteBufferState.Terminated) return visitor(TerminatedLookAhead)
1827
1827
result = visitor(this)
1828
1828
if (!state.idle && state !==ReadWriteBufferState.Terminated) {
1829
-
restoreStateAfterRead()
1829
+
if (state isReadWriteBufferState.Reading|| state isReadWriteBufferState.ReadingWriting) {
0 commit comments