ignore java.util.concurrent.RejectedExecutionException when already closed

This commit is contained in:
Rob Austin
2015-02-02 10:17:29 +00:00
parent 902cd25464
commit 2393860a76
@@ -1173,8 +1173,12 @@ class StatelessChronicleMap<K, V> implements ChronicleMap<K, V>, Closeable, Clon
} else
inBytes.limit(inBytes.capacity());
// block until we have received all the bytes in this chunk
receiveBytesFromSocket(remainingBytes, timeoutTime);
try {
// block until we have received all the bytes in this chunk
receiveBytesFromSocket(remainingBytes, timeoutTime);
}catch (java.nio.channels.AsynchronousCloseException e ){
return inBytes;
}
final boolean isException = inBytes.readBoolean();