This closes #1507
This commit is contained in:
commit
cc35b23613
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue