Skip to content

Commit 4a27eb0

Browse files
committed
remove isLocked
1 parent fffcf04 commit 4a27eb0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ private OnSubscribeRedo(Observable<T> source, Func1<? super Observable<? extends
190190

191191
@Override
192192
public void call(final Subscriber<? super T> child) {
193-
final AtomicBoolean isLocked = new AtomicBoolean(true);
194193
final AtomicBoolean resumeBoundary = new AtomicBoolean(true);
195194
// incremented when requests are made, decremented when requests are fulfilled
196195
final AtomicLong consumerCapacity = new AtomicLong(0l);
@@ -298,7 +297,6 @@ public void onNext(Notification<?> t) {
298297
else if (t.isOnError() && stopOnError)
299298
child.onError(t.getThrowable());
300299
else {
301-
isLocked.set(false);
302300
filteredTerminals.onNext(t);
303301
}
304302
}
@@ -328,7 +326,7 @@ public void onError(Throwable e) {
328326

329327
@Override
330328
public void onNext(Object t) {
331-
if (!isLocked.get() && !child.isUnsubscribed()) {
329+
if (!child.isUnsubscribed()) {
332330
if (consumerCapacity.get() > 0) {
333331
worker.schedule(subscribeToSource);
334332
} else {

0 commit comments

Comments
 (0)