Skip to content

Commit 7f85804

Browse files
committed
use latest OperatorObserveOn from #2929
1 parent 82685fb commit 7f85804

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)