We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c1b77dc + 56983e6 commit 69fa2ffCopy full SHA for 69fa2ff
rxjava-core/src/main/java/rx/internal/operators/OperatorScan.java
@@ -129,7 +129,7 @@ public void setProducer(final Producer producer) {
129
@Override
130
public void request(long n) {
131
if (once.compareAndSet(false, true)) {
132
- if (initialValue == NO_INITIAL_VALUE) {
+ if (initialValue == NO_INITIAL_VALUE || n == Long.MAX_VALUE) {
133
producer.request(n);
134
} else {
135
producer.request(n - 1);
0 commit comments