Skip to content

Commit

Permalink
Fixed Zip issue with infinite streams.
Browse files Browse the repository at this point in the history
  • Loading branch information
akarnokd committed Nov 30, 2013
1 parent e17ae00 commit 8deba28
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rxjava-core/src/main/java/rx/operators/OperationZip.java
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,9 @@ public void onNext(T value) {
if (io.done) {
observer.onCompleted();
cancel.unsubscribe();
return;
}
return;
continue;
}
Object v = io.queue.peek();
if (v == NULL_SENTINEL) {
Expand All @@ -459,6 +460,8 @@ public void onNext(T value) {
io.queue.poll();
}
observer.onNext(values);
} else {
break;
}
}
} finally {
Expand Down

0 comments on commit 8deba28

Please sign in to comment.