Skip to content

Commit e128ffe

Browse files
Remove Temporary Timeout in take
Fix it properly this time :-)
1 parent 931e17e commit e128ffe

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rxjava-core/src/main/java/rx/internal/operators/BlockingOperatorToIterator.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,11 @@ public T next() {
8989
}
9090

9191
private Notification<? extends T> take() {
92-
return notifications.poll();
92+
try {
93+
return notifications.take();
94+
} catch (InterruptedException e) {
95+
throw Exceptions.propagate(e);
96+
}
9397
}
9498

9599
@Override

0 commit comments

Comments
 (0)