diff options
| author | Rajith Muditha Attapattu <rajith@apache.org> | 2011-05-03 14:04:46 +0000 |
|---|---|---|
| committer | Rajith Muditha Attapattu <rajith@apache.org> | 2011-05-03 14:04:46 +0000 |
| commit | 6c330695a16015a2ef24f09ace71ab2423fe0d00 (patch) | |
| tree | 282d87fc13744e7f2e4fed804155d71b41493f0c /java/client | |
| parent | 2766e601d832a36aaff2122f30bd4c2ebfc9ea03 (diff) | |
| download | qpid-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.java | 4 |
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() |
