mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Check both connection and connected flag
Issue: SPR-14703
This commit is contained in:
+1
-1
@@ -768,7 +768,7 @@ public class StompBrokerRelayMessageHandler extends AbstractBrokerMessageHandler
|
||||
public ListenableFuture<Void> forward(final Message<?> message, final StompHeaderAccessor accessor) {
|
||||
TcpConnection<byte[]> conn = this.tcpConnection;
|
||||
|
||||
if (!this.isStompConnected) {
|
||||
if (!this.isStompConnected || conn == null) {
|
||||
if (this.isRemoteClientSession) {
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("TCP connection closed already, ignoring " +
|
||||
|
||||
Reference in New Issue
Block a user