Skip to content

Commit b93f8bb

Browse files
zsxwingbenjchristensen
authored andcommitted
Make TakeUntil obey Rx contract
1 parent bd87ceb commit b93f8bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import rx.Observable;
1919
import rx.Observable.Operator;
2020
import rx.Subscriber;
21+
import rx.observers.SerializedSubscriber;
2122

2223
/**
2324
* Returns an Observable that emits the items from the source Observable until another Observable
@@ -35,7 +36,7 @@ public OperatorTakeUntil(final Observable<? extends E> other) {
3536

3637
@Override
3738
public Subscriber<? super T> call(final Subscriber<? super T> child) {
38-
final Subscriber<T> parent = new Subscriber<T>(child) {
39+
final Subscriber<T> parent = new SerializedSubscriber<T>(child) {
3940

4041
@Override
4142
public void onCompleted() {

0 commit comments

Comments
 (0)