summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2007-02-16 13:05:54 +0000
committerMartin Ritchie <ritchiem@apache.org>2007-02-16 13:05:54 +0000
commitcec6dc1af65db02febc2ba71cef2b3d1a681fefd (patch)
tree77b7fe328a2a8b014d03391aa297bac095c004e4
parentb90aa16c3fd5f7ef66bf97f4a86045ff3c8f7f32 (diff)
downloadqpid-python-cec6dc1af65db02febc2ba71cef2b3d1a681fefd.tar.gz
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
-rw-r--r--java/client/src/main/java/org/apache/qpid/client/AMQSession.java2
1 files changed, 1 insertions, 1 deletions
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));
}