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.
1 parent 24ca4f7 commit 63fde7dCopy full SHA for 63fde7d
src/main/java/rx/internal/operators/OperatorConcat.java
@@ -115,7 +115,7 @@ public void onStart() {
115
private void requestFromChild(long n) {
116
// we track 'requested' so we know whether we should subscribe the next or not
117
ConcatInnerSubscriber<T> actualSubscriber = currentSubscriber;
118
- if (REQUESTED_UPDATER.getAndAdd(this, n) == 0) {
+ if (n > 0 && BackpressureUtils.getAndAddRequest(REQUESTED_UPDATER, this, n) == 0) {
119
if (actualSubscriber == null && wip > 0) {
120
// this means we may be moving from one subscriber to another after having stopped processing
121
// so need to kick off the subscribe via this request notification
0 commit comments