From b3a306c4ca96d7e15fea9e2085eaee8f685cef75 Mon Sep 17 00:00:00 2001 From: Rajith Muditha Attapattu Date: Thu, 14 May 2009 15:22:23 +0000 Subject: This is related to QPID-1854 The sender.close is now surrounded with a try catch to handle the exception thrown by the IoSender.close(). The ideal situation would have been to pass false to the IoSender.close(boolean reportException) method which will then not throw the exception up the stack. But that method is not exposed in the Sender interface. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@774817 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/qpid/transport/Connection.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'qpid/java/common') diff --git a/qpid/java/common/src/main/java/org/apache/qpid/transport/Connection.java b/qpid/java/common/src/main/java/org/apache/qpid/transport/Connection.java index 4615b46066..1cdd1da72b 100644 --- a/qpid/java/common/src/main/java/org/apache/qpid/transport/Connection.java +++ b/qpid/java/common/src/main/java/org/apache/qpid/transport/Connection.java @@ -438,7 +438,14 @@ public class Connection extends ConnectionInvoker ssn.closed(); } - sender.close(); + try + { + sender.close(); + } + catch(Exception e) + { + // ignore. + } sender = null; setState(CLOSED); } -- cgit v1.2.1