You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2024/10/22 08:45:12 UTC

(camel-quarkus) 04/04: Fix check for ServiceRemoveEvent observers

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

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

commit aba112ecfa2517ab054ab046b7efa4e0d7189f7c
Author: James Netherton <ja...@gmail.com>
AuthorDate: Mon Oct 21 12:21:01 2024 +0100

    Fix check for ServiceRemoveEvent observers
---
 .../java/org/apache/camel/quarkus/core/CamelLifecycleEventBridge.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/CamelLifecycleEventBridge.java b/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/CamelLifecycleEventBridge.java
index 70248ac172..2475fcb251 100644
--- a/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/CamelLifecycleEventBridge.java
+++ b/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/CamelLifecycleEventBridge.java
@@ -127,7 +127,7 @@ public class CamelLifecycleEventBridge implements LifecycleStrategy {
 
     @Override
     public void onServiceRemove(CamelContext context, Service service, org.apache.camel.Route route) {
-        if (observedLifecycleEvents.contains(ServiceAddEvent.class.getName())) {
+        if (observedLifecycleEvents.contains(ServiceRemoveEvent.class.getName())) {
             fireEvent(new ServiceRemoveEvent(context, service, route));
         }
     }