Skip to content

Commit a17b592

Browse files
committed
Fixed case with skipUntil(empty()) == never() (matches Rx.NET)
1 parent b11b30a commit a17b592

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

rxjava-core/src/main/java/rx/operators/OperationSkipUntil.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,7 @@ public void onError(Throwable e) {
113113

114114
@Override
115115
public void onCompleted() {
116-
if (!running.get()) {
117-
ResultManager.this.onCompleted();
118-
} else {
119-
self.unsubscribe();
120-
}
116+
self.unsubscribe();
121117
}
122118

123119
}

rxjava-core/src/test/java/rx/operators/OperationSkipUntilTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public void otherEmpty() {
8989

9090
verify(observer, never()).onError(any(Throwable.class));
9191
verify(observer, never()).onNext(any());
92-
verify(observer, times(1)).onCompleted();
92+
verify(observer, never()).onCompleted();
9393
}
9494
@Test
9595
public void otherFiresAndCompletes() {

0 commit comments

Comments
 (0)