Skip to content

Commit c755204

Browse files
committed
better name
1 parent 49a9afe commit c755204

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const READ_READABLE_STATUS = OPEN_STATUS | READ_EMIT_READABLE | READ_QUEUED | RE
9898
const SHOULD_NOT_READ = OPEN_STATUS | READ_ACTIVE | READ_ENDING | READ_DONE | READ_NEEDS_PUSH | READ_READ_AHEAD
9999
const READ_BACKPRESSURE_STATUS = DESTROY_STATUS | READ_ENDING | READ_DONE
100100
const READ_UPDATE_SYNC_STATUS = READ_UPDATING | OPEN_STATUS | READ_NEXT_TICK | READ_PRIMARY
101-
const READ_NEXT_TICK_OPENING = READ_NEXT_TICK | OPENING
101+
const READ_NEXT_TICK_OR_OPENING = READ_NEXT_TICK | OPENING
102102

103103
// Combined write state
104104
const WRITE_PRIMARY_STATUS = OPEN_STATUS | WRITE_FINISHING | WRITE_DONE
@@ -419,7 +419,7 @@ class ReadableState {
419419
}
420420

421421
updateNextTickIfOpen () {
422-
if ((this.stream._duplexState & READ_NEXT_TICK_OPENING) !== 0) return
422+
if ((this.stream._duplexState & READ_NEXT_TICK_OR_OPENING) !== 0) return
423423
this.stream._duplexState |= READ_NEXT_TICK
424424
if ((this.stream._duplexState & READ_UPDATING) === 0) queueTick(this.afterUpdateNextTick)
425425
}

0 commit comments

Comments
 (0)