summaryrefslogtreecommitdiff
path: root/java/client
diff options
context:
space:
mode:
authorRajith Muditha Attapattu <rajith@apache.org>2011-05-03 14:04:46 +0000
committerRajith Muditha Attapattu <rajith@apache.org>2011-05-03 14:04:46 +0000
commit6c330695a16015a2ef24f09ace71ab2423fe0d00 (patch)
tree282d87fc13744e7f2e4fed804155d71b41493f0c /java/client
parent2766e601d832a36aaff2122f30bd4c2ebfc9ea03 (diff)
downloadqpid-python-6c330695a16015a2ef24f09ace71ab2423fe0d00.tar.gz
QPID-3214
Committing the suggested fix by Gordon Sim. All though the currentException may change by the time we call connection.exceptionReceived() it's not really a big issue. Chance of getting two successive sessions exceptions is rare if not none at all. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1099060 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/client')
-rw-r--r--java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java b/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java
index 90a4c36464..be8d39e4b5 100644
--- a/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java
+++ b/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java
@@ -1029,11 +1029,9 @@ public class AMQSession_0_10 extends AMQSession<BasicMessageConsumer_0_10, Basic
code = ee.getErrorCode().getValue();
}
AMQException amqe = new AMQException(AMQConstant.getConstant(code), se.getMessage(), se.getCause());
-
- _connection.exceptionReceived(amqe);
-
_currentException = amqe;
}
+ _connection.exceptionReceived(_currentException);
}
public AMQMessageDelegateFactory getMessageDelegateFactory()