Skip to content

Commit

Permalink
use latest OperatorObserveOn from #2929
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmoten committed May 13, 2015
1 parent 82685fb commit 7f85804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/rx/internal/operators/OperatorObserveOn.java
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ void pollQueue() {
break;
}
}
if (produced > 0) {
if (produced > 0 && requested != Long.MAX_VALUE) {
REQUESTED.addAndGet(this, -produced);
}
} while (COUNTER_UPDATER.decrementAndGet(this) > 0);
Expand Down

0 comments on commit 7f85804

Please sign in to comment.