Repository: camel
Updated Branches:
  refs/heads/camel-2.17.x 36f39ccca -> 2393e9069


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/2393e906
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/2393e906
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/2393e906

Branch: refs/heads/camel-2.17.x
Commit: 2393e9069722a0300003a95c269d2801b1f9599b
Parents: 36f39cc
Author: Andrea Cosentino <anco...@gmail.com>
Authored: Tue Mar 22 13:06:55 2016 +0100
Committer: Andrea Cosentino <anco...@gmail.com>
Committed: Tue Mar 22 13:10:02 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/2393e906/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();
     }
    

Reply via email to