You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2013/10/11 12:04:50 UTC

[3/3] git commit: CAMEL-6856: netty consumer using UDP should release the datagram channel factory

CAMEL-6856: netty consumer using UDP should release the datagram channel factory


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

Branch: refs/heads/camel-2.9.x
Commit: 9f6143a8a7df0e828b5e634bd8e6c4a5d8cbcff2
Parents: dc494ef
Author: Claus Ibsen <da...@apache.org>
Authored: Fri Oct 11 12:03:43 2013 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Fri Oct 11 12:04:22 2013 +0200

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


http://git-wip-us.apache.org/repos/asf/camel/blob/9f6143a8/components/camel-netty/src/main/java/org/apache/camel/component/netty/NettyConsumer.java
----------------------------------------------------------------------
diff --git a/components/camel-netty/src/main/java/org/apache/camel/component/netty/NettyConsumer.java b/components/camel-netty/src/main/java/org/apache/camel/component/netty/NettyConsumer.java
index 3cbb0b3..623870e 100644
--- a/components/camel-netty/src/main/java/org/apache/camel/component/netty/NettyConsumer.java
+++ b/components/camel-netty/src/main/java/org/apache/camel/component/netty/NettyConsumer.java
@@ -98,6 +98,9 @@ public class NettyConsumer extends DefaultConsumer {
         if (channelFactory != null) {
             channelFactory.releaseExternalResources();
         }
+        if (datagramChannelFactory != null) {
+            datagramChannelFactory.releaseExternalResources();
+        }
 
         // and then shutdown the thread pools
         if (bossExecutor != null) {