This commit is contained in:
Redkale
2018-05-21 13:57:25 +08:00
parent 4494683db2
commit c9aa31d803

View File

@@ -107,7 +107,11 @@ public abstract class AsyncConnection implements AsynchronousByteChannel, AutoCl
livingCounter.decrementAndGet();
livingCounter = null;
}
if (beforeCloseListener != null) beforeCloseListener.accept(this);
if (beforeCloseListener != null)
try {
beforeCloseListener.accept(this);
} catch (Exception io) {
}
if (attributes == null) return;
try {
for (Object obj : attributes.values()) {