HCOLL-133 CloseablesManager.checkState is throwing java.lang.IllegalStateException

This commit is contained in:
Rob Austin
2014-09-23 19:30:40 +01:00
parent 3ebb3705af
commit 10d8ad5481
@@ -55,6 +55,8 @@ final class CloseablesManager implements Closeable {
public synchronized void closeQuietly(Closeable closeable) {
try {
close(closeable);
} catch (IllegalStateException e) {
// this can occur if already closed ( for example closed called from another thread )
} catch (IOException e) {
LOG.error("", e);
}
@@ -85,7 +87,7 @@ final class CloseablesManager implements Closeable {
}
}
boolean isClosed() {
boolean isClosed() {
return isClosed;
}
}