Skip to content

Commit 8c3dd49

Browse files
committed
use latest request overflow fix from ReactiveX#2929
1 parent 901e83e commit 8c3dd49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ void pollQueue() {
221221
return;
222222
}
223223
}
224-
REQUESTED.incrementAndGet(this);
224+
BackpressureUtils.getAndAddRequest(REQUESTED, this, 1);
225225
break;
226226
} else {
227227
if (!on.accept(child, o)) {
@@ -231,7 +231,7 @@ void pollQueue() {
231231
}
232232
} else {
233233
// we hit the end ... so increment back to 0 again
234-
REQUESTED.incrementAndGet(this);
234+
BackpressureUtils.getAndAddRequest(REQUESTED, this, 1);
235235
break;
236236
}
237237
}

0 commit comments

Comments
 (0)