mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-133 CloseablesManager.checkState is throwing java.lang.IllegalStateException
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user