Skip to content

Commit c9d9324

Browse files
committed
don't reduce requested by produced if requested is Long.MAX_VALUE
1 parent 18caf0e commit c9d9324

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/rx/internal/operators/OperatorObserveOn.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ void pollQueue() {
214214
break;
215215
}
216216
}
217-
if (produced > 0) {
217+
if (produced > 0 && requested != Long.MAX_VALUE) {
218218
REQUESTED.addAndGet(this, -produced);
219219
}
220220
} while (COUNTER_UPDATER.decrementAndGet(this) > 0);

0 commit comments

Comments
 (0)