From cec6dc1af65db02febc2ba71cef2b3d1a681fefd Mon Sep 17 00:00:00 2001 From: Martin Ritchie Date: Fri, 16 Feb 2007 13:05:54 +0000 Subject: QPID-373 Queue|Exchange}{Bind|Declare} should be synchronous to correctly receive/handle error Updated AMQSession to be synchronous. With the build error fixed!! git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@508384 13f79535-47bb-0310-9956-ffa450edef68 --- java/client/src/main/java/org/apache/qpid/client/AMQSession.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java') diff --git a/java/client/src/main/java/org/apache/qpid/client/AMQSession.java b/java/client/src/main/java/org/apache/qpid/client/AMQSession.java index c35c067bf6..3973b5dd71 100644 --- a/java/client/src/main/java/org/apache/qpid/client/AMQSession.java +++ b/java/client/src/main/java/org/apache/qpid/client/AMQSession.java @@ -298,7 +298,7 @@ public class AMQSession extends Closeable implements Session, QueueSession, Topi { _connection.exceptionReceived(new AMQNoConsumersException("Error: " + reason, bouncedMessage)); } - else if (errorCode == (AMQConstant.NO_ROUTE) + else if (errorCode == AMQConstant.NO_ROUTE) { _connection.exceptionReceived(new AMQNoRouteException("Error: " + reason, bouncedMessage)); } -- cgit v1.2.1