Skip to content

Commit 3b64e76

Browse files
committed
ensure subscribe to restarts is unsubscribed
1 parent b0bb3c6 commit 3b64e76

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,11 @@ public void onError(Throwable e) {
291291

292292
@Override
293293
public void onNext(Notification<?> t) {
294-
if (t.isOnCompleted() && stopOnComplete)
295-
child.onCompleted();
296-
else if (t.isOnError() && stopOnError)
297-
child.onError(t.getThrowable());
298-
else {
294+
if (t.isOnCompleted() && stopOnComplete) {
295+
filteredTerminals.onCompleted();
296+
} else if (t.isOnError() && stopOnError) {
297+
filteredTerminals.onError(t.getThrowable());
298+
} else {
299299
filteredTerminals.onNext(t);
300300
}
301301
}

0 commit comments

Comments
 (0)