You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ta...@apache.org on 2017/04/25 22:41:25 UTC

qpid-jms git commit: QPIDJMS-288 Ensure the Connection Executor is shutdown on error

Repository: qpid-jms
Updated Branches:
  refs/heads/master 101f31c65 -> fafc3d3c6


QPIDJMS-288 Ensure the Connection Executor is shutdown on error

If the connect call failres, ensure the internal executor of the
Connection gets shutdown.

Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/fafc3d3c
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/fafc3d3c
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/fafc3d3c

Branch: refs/heads/master
Commit: fafc3d3c6b256354fcccbf994d9ced164e4a96ca
Parents: 101f31c
Author: Timothy Bish <ta...@gmail.com>
Authored: Tue Apr 25 18:29:08 2017 -0400
Committer: Timothy Bish <ta...@gmail.com>
Committed: Tue Apr 25 18:29:08 2017 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/qpid/jms/JmsConnection.java         | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/fafc3d3c/qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsConnection.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsConnection.java b/qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsConnection.java
index 0fc9dcd..de6dc9c 100644
--- a/qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsConnection.java
+++ b/qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsConnection.java
@@ -165,6 +165,10 @@ public class JmsConnection implements AutoCloseable, Connection, TopicConnection
                 provider.close();
             } catch (Throwable ignored) {}
 
+            try {
+                executor.shutdown();
+            } catch (Throwable ignored) {}
+
             throw JmsExceptionSupport.create(ex);
         }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org