activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1381987 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/vm/VMTransport.java
Date Fri, 07 Sep 2012 12:05:53 GMT
Author: davsclaus
Date: Fri Sep  7 12:05:53 2012
New Revision: 1381987

URL: http://svn.apache.org/viewvc?rev=1381987&view=rev
Log:
AMQ-3451: Ensure thread pools is shutdown properly to avoid any leaks. Do not use the old
@deprecated thread pool.

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/vm/VMTransport.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/vm/VMTransport.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/vm/VMTransport.java?rev=1381987&r1=1381986&r2=1381987&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/vm/VMTransport.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/vm/VMTransport.java
Fri Sep  7 12:05:53 2012
@@ -288,11 +288,12 @@ public class VMTransport implements Tran
                         throw new TransportDisposedIOException("The Transport has been disposed");
                     }
 
+                    String name = "ActiveMQ VMTransport: " + toString();
                     if (taskRunnerFactory == null) {
-                        taskRunnerFactory = new TaskRunnerFactory("ActiveMQ VMTransport:
" + toString());
+                        taskRunnerFactory = new TaskRunnerFactory(name);
                         taskRunnerFactory.init();
                     }
-                    taskRunner = result = taskRunnerFactory.createTaskRunner(this, "VMTransport:
" + toString());
+                    taskRunner = result = taskRunnerFactory.createTaskRunner(this, name);
                 }
             }
         }



Mime
View raw message