This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch camel-4.10.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-4.10.x by this push:
     new a531443f911 Fix thread pool cleanup in MasterComponent (#17705)
a531443f911 is described below

commit a531443f9111ca549132ba81870de9303c076eb2
Author: Bruno Mendola <[email protected]>
AuthorDate: Thu Apr 10 13:46:02 2025 +0200

    Fix thread pool cleanup in MasterComponent (#17705)
    
    I noticed that the condition to cleanup the thread pool is wrong, so it 
actually never gets cleaned up when stopping the component.
---
 .../main/java/org/apache/camel/component/master/MasterComponent.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/components/camel-master/src/main/java/org/apache/camel/component/master/MasterComponent.java
 
b/components/camel-master/src/main/java/org/apache/camel/component/master/MasterComponent.java
index c986abde42e..b4d8bc4e59f 100644
--- 
a/components/camel-master/src/main/java/org/apache/camel/component/master/MasterComponent.java
+++ 
b/components/camel-master/src/main/java/org/apache/camel/component/master/MasterComponent.java
@@ -166,7 +166,7 @@ public class MasterComponent extends DefaultComponent {
     protected void doStop() throws Exception {
         super.doStop();
 
-        if (backOffThreadPool == null) {
+        if (backOffThreadPool != null) {
             
getCamelContext().getExecutorServiceManager().shutdown(backOffThreadPool);
             backOffThreadPool = null;
         }

Reply via email to