Skip to content

Commit

Permalink
Small fix in parallel buffer access example, refs #599
Browse files Browse the repository at this point in the history
  • Loading branch information
sarxos committed Jan 15, 2018
1 parent abaf107 commit cc6087c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ public ByteBuffer awaitAndGet() {
*/
public void ready(ByteBuffer bb) {
try {
exchange(bb, 0, TimeUnit.SECONDS);
exchange(bb, 500, TimeUnit.MILLISECONDS);
} catch (InterruptedException | TimeoutException e) {
throw new IllegalStateException(e);
// do nothing, frame is dropped
}
}

Expand Down

0 comments on commit cc6087c

Please sign in to comment.