From 1fa4a7d34f56b85753fb38f54a4bc6d5f1c837db Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Wed, 19 Mar 2014 10:35:48 -0400 Subject: [PATCH] Fix minor issue in STOMP broker relay --- .../messaging/simp/stomp/StompBrokerRelayMessageHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandler.java b/spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandler.java index 41736a241e..1980f90404 100644 --- a/spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandler.java +++ b/spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandler.java @@ -81,6 +81,7 @@ public class StompBrokerRelayMessageHandler extends AbstractBrokerMessageHandler static { SimpMessageHeaderAccessor headers = SimpMessageHeaderAccessor.create(SimpMessageType.HEARTBEAT); HEARTBEAT_MESSAGE = MessageBuilder.withPayload(new byte[] {'\n'}).setHeaders(headers).build(); + EMPTY_TASK.run(); }