Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ public int read() throws IOException {

final Integer value = queue.poll(QUEUE_TIMEOUT,
TimeUnit.SECONDS);
this.endReached = (value == -1);

if (value == null) {
throw new IOException(
"Timeout while reading from the queue-based input stream");
} else {
this.endReached = (value == -1);
return value.intValue();
}
} catch (InterruptedException ie) {
Expand Down