Skip to content

Commit

Permalink
NO-JIRA test STOMP client not disconnecting properly
Browse files Browse the repository at this point in the history
  • Loading branch information
jbertram authored and gemmellr committed Jul 6, 2023
1 parent f279eed commit d5213e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public void disconnect() throws IOException, InterruptedException {
frame.addHeader(Stomp.Headers.RECEIPT_REQUESTED, uuid);

try {
if (!transport.isConnected()) {
if (transport.isConnected()) {
ClientStompFrame result = this.sendFrame(frame);
if (result == null || (!Stomp.Responses.RECEIPT.equals(result.getCommand())) || (!uuid.equals(result.getHeader(Stomp.Headers.Response.RECEIPT_ID)))) {
throw new IOException("Disconnect failed! " + result);
Expand Down

0 comments on commit d5213e6

Please sign in to comment.