minor fix

This commit is contained in:
nishantmonu51 2014-02-07 17:52:52 +05:30
parent 61d99bb8f2
commit db93e45bef
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ public abstract class BytesBoundedLinkedQueue<E> extends AbstractQueue<E> implem
try { try {
while (currentSize.get() >= capacity) { while (currentSize.get() >= capacity) {
if (nanos <= 0) { if (nanos <= 0) {
break; return false;
} }
nanos = notFull.awaitNanos(nanos); nanos = notFull.awaitNanos(nanos);
} }