ARTEMIS-441 correct time-unit for large msg poll
This commit is contained in:
parent
ab98eb9620
commit
7653d17e6a
|
@ -1089,7 +1089,7 @@ public class LargeMessageControllerImpl implements LargeMessageController {
|
||||||
}
|
}
|
||||||
|
|
||||||
int sizeToAdd = currentPacket != null ? currentPacket.chunk.length : 1;
|
int sizeToAdd = currentPacket != null ? currentPacket.chunk.length : 1;
|
||||||
currentPacket = largeMessageData.poll(readTimeout, TimeUnit.SECONDS);
|
currentPacket = largeMessageData.poll(readTimeout, TimeUnit.MILLISECONDS);
|
||||||
if (currentPacket == null) {
|
if (currentPacket == null) {
|
||||||
throw new IndexOutOfBoundsException();
|
throw new IndexOutOfBoundsException();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue