NO-JIRA test STOMP client not disconnecting properly

This commit is contained in:
Justin Bertram 2023-06-30 12:40:44 -05:00 committed by Robbie Gemmell
parent f279eede60
commit d5213e66c1
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ public class StompClientConnectionV11 extends StompClientConnectionV10 {
frame.addHeader(Stomp.Headers.RECEIPT_REQUESTED, uuid); frame.addHeader(Stomp.Headers.RECEIPT_REQUESTED, uuid);
try { try {
if (!transport.isConnected()) { if (transport.isConnected()) {
ClientStompFrame result = this.sendFrame(frame); ClientStompFrame result = this.sendFrame(frame);
if (result == null || (!Stomp.Responses.RECEIPT.equals(result.getCommand())) || (!uuid.equals(result.getHeader(Stomp.Headers.Response.RECEIPT_ID)))) { if (result == null || (!Stomp.Responses.RECEIPT.equals(result.getCommand())) || (!uuid.equals(result.getHeader(Stomp.Headers.Response.RECEIPT_ID)))) {
throw new IOException("Disconnect failed! " + result); throw new IOException("Disconnect failed! " + result);