| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 27d7e3a commit 970242e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -393,7 +393,7 @@ public long read(ByteBuffer[] dsts, int offset, int length) throws IOException { | |||
| 393 | 393 | ||
| 394 | 394 | try { | |
| 395 | 395 | Object poll; | |
| 396 | - while ((poll = queue.poll(10, TimeUnit.MICROSECONDS)) != null) { | ||
| 396 | + while (leftovers == null && (poll = queue.poll(10, TimeUnit.MICROSECONDS)) != null) { | ||
| 397 | 397 | if (poll instanceof ChildRef) { | |
| 398 | 398 | ChildRefHelper ref = new ChildRefHelper((ChildRef) poll); | |
| 399 | 399 | read += ref.copy(dsts, offset, length); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments