提交 81f6c22e 编写于 作者: R Rossen Stoyanchev

Reset connection before delegating to handler

Resetting the connection first before invoking a failure callback on
the application handler ensures that any checks to isConnected will
return false.

Issue: SPR-14721
上级 78a8245f
......@@ -480,8 +480,8 @@ public class DefaultStompSession implements ConnectionHandlingStompSession {
logger.debug("Connection closed session id=" + this.sessionId);
}
if (!this.closing) {
handleFailure(new ConnectionLostException("Connection closed"));
resetConnection();
handleFailure(new ConnectionLostException("Connection closed"));
}
}
......@@ -671,8 +671,8 @@ public class DefaultStompSession implements ConnectionHandlingStompSession {
if (logger.isDebugEnabled()) {
logger.debug(error);
}
handleFailure(new IllegalStateException(error));
resetConnection();
handleFailure(new IllegalStateException(error));
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册