activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1244809 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/StompNIOTransport.java
Date Thu, 16 Feb 2012 00:40:56 GMT
Author: tabish
Date: Thu Feb 16 00:40:55 2012
New Revision: 1244809

URL: http://svn.apache.org/viewvc?rev=1244809&view=rev
Log:
fix: https://issues.apache.org/jira/browse/AMQ-3721

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/StompNIOTransport.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/StompNIOTransport.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/StompNIOTransport.java?rev=1244809&r1=1244808&r2=1244809&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/StompNIOTransport.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/StompNIOTransport.java
Thu Feb 16 00:40:55 2012
@@ -126,10 +126,11 @@ public class StompNIOTransport extends T
 
     protected void doStop(ServiceStopper stopper) throws Exception {
         try {
-            selection.close();
-        } catch (Exception e) {
-            e.printStackTrace();
+            if (selection != null) {
+                selection.close();
+            }
+        } finally {
+            super.doStop(stopper);
         }
-        super.doStop(stopper);
     }
 }



Mime
View raw message