This commit is contained in:
Clebert Suconic 2017-09-05 16:17:05 -04:00
commit cc35b23613
1 changed files with 3 additions and 1 deletions

View File

@ -348,7 +348,9 @@ public class ServerSessionImpl implements ServerSession, FailureListener {
}
protected void doClose(final boolean failed) throws Exception {
callback.close(failed);
if (callback != null) {
callback.close(failed);
}
synchronized (this) {
if (!closed) {
server.callBrokerPlugins(server.hasBrokerPlugins() ? plugin -> plugin.beforeCloseSession(this, failed) : null);