camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject camel git commit: CAMEL-9738 Thread leak for camel-mina2 consumers. Thanks to Thomas Papke for the patch.
Date Tue, 22 Mar 2016 12:08:37 GMT
Repository: camel
Updated Branches:
  refs/heads/master 17dc42bcf -> 52e980041


CAMEL-9738 Thread leak for camel-mina2 consumers. Thanks to Thomas Papke for the patch.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/52e98004
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/52e98004
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/52e98004

Branch: refs/heads/master
Commit: 52e98004179927631cf011ab0b176e0942cb744b
Parents: 17dc42b
Author: Andrea Cosentino <ancosen@gmail.com>
Authored: Tue Mar 22 13:06:55 2016 +0100
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Tue Mar 22 13:08:14 2016 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/camel/component/mina2/Mina2Consumer.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/52e98004/components/camel-mina2/src/main/java/org/apache/camel/component/mina2/Mina2Consumer.java
----------------------------------------------------------------------
diff --git a/components/camel-mina2/src/main/java/org/apache/camel/component/mina2/Mina2Consumer.java
b/components/camel-mina2/src/main/java/org/apache/camel/component/mina2/Mina2Consumer.java
index 86cc421..9e58365 100644
--- a/components/camel-mina2/src/main/java/org/apache/camel/component/mina2/Mina2Consumer.java
+++ b/components/camel-mina2/src/main/java/org/apache/camel/component/mina2/Mina2Consumer.java
@@ -140,6 +140,9 @@ public class Mina2Consumer extends DefaultConsumer {
         if (workerPool != null) {
             workerPool.shutdown();
         }
+        if (acceptor != null){
+            acceptor.dispose(true);
+        }
         super.doShutdown();
     }
    


Mime
View raw message