NO-JIRA test STOMP client not disconnecting properly
This commit is contained in:
parent
f279eede60
commit
d5213e66c1
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue