Skip to content

Commit 039a703

Browse files
davidmotenakarnokd
authored andcommitted
zip - check local boolean before volatile in boolean and (#4764)
1 parent 850deea commit 039a703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ void tick() {
246246
}
247247
}
248248
// we only emit if requested > 0 and have all values available
249-
if (requested.get() > 0 && allHaveValues) {
249+
if (allHaveValues && requested.get() > 0) {
250250
try {
251251
// all have something so emit
252252
child.onNext(zipFunction.call(vs));

0 commit comments

Comments
 (0)