You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gn...@apache.org on 2020/03/04 08:57:52 UTC

[camel] 07/32: Remove references to error handler and event driven processors once creation is finished

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

gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 463fcd11c7bcdd3b8d7bdc3301dbce39674c1168
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Tue Feb 25 13:50:35 2020 +0100

    Remove references to error handler and event driven processors once creation is finished
---
 .../src/main/java/org/apache/camel/impl/engine/DefaultRoute.java       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/core/camel-base/src/main/java/org/apache/camel/impl/engine/DefaultRoute.java b/core/camel-base/src/main/java/org/apache/camel/impl/engine/DefaultRoute.java
index 47f6602..c52c690 100644
--- a/core/camel-base/src/main/java/org/apache/camel/impl/engine/DefaultRoute.java
+++ b/core/camel-base/src/main/java/org/apache/camel/impl/engine/DefaultRoute.java
@@ -613,6 +613,7 @@ public class DefaultRoute extends ServiceSupport implements Route {
     }
 
     public void initialized() {
-
+        errorHandlers.clear();
+        eventDrivenProcessors.clear();
     }
 }