You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2016/01/18 02:03:39 UTC
camel git commit: CAMEL-9514 Cleaned up the comments
Repository: camel
Updated Branches:
refs/heads/master 672e2b15c -> 3d00f856b
CAMEL-9514 Cleaned up the comments
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/3d00f856
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/3d00f856
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/3d00f856
Branch: refs/heads/master
Commit: 3d00f856b381663a8ed4b765020938b04f86642b
Parents: 672e2b1
Author: Willem Jiang <wi...@gmail.com>
Authored: Mon Jan 18 09:03:24 2016 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Mon Jan 18 09:03:24 2016 +0800
----------------------------------------------------------------------
.../java/org/apache/camel/component/netty4/NettyComponent.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/3d00f856/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyComponent.java b/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyComponent.java
index 4cb70be..048d054 100644
--- a/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyComponent.java
+++ b/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyComponent.java
@@ -124,7 +124,8 @@ public class NettyComponent extends UriEndpointComponent {
if (configuration == null) {
configuration = new NettyConfiguration();
}
-
+
+ //Only setup the executorService if it is needed
if (configuration.isUsingExecutorService() && executorService == null) {
executorService = createExecutorService();
}
@@ -143,7 +144,7 @@ public class NettyComponent extends UriEndpointComponent {
@Override
protected void doStop() throws Exception {
- //Only shutdown the executorService if it is create by netty component
+ //Only shutdown the executorService if it is created by netty component
if (configuration.isUsingExecutorService() && executorService != null) {
getCamelContext().getExecutorServiceManager().shutdownGraceful(executorService);
executorService = null;