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 2021/02/28 13:01:23 UTC
[camel] 03/05: CAMEL-16222: camel-core - ExchangeFactory SPI to
allow to use exchange pooling
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit b5585302a6db10f564b823549065d1963faa4385
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sun Feb 28 13:37:24 2021 +0100
CAMEL-16222: camel-core - ExchangeFactory SPI to allow to use exchange pooling
---
.../main/java/org/apache/camel/component/timer/TimerConsumer.java | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/components/camel-timer/src/main/java/org/apache/camel/component/timer/TimerConsumer.java b/components/camel-timer/src/main/java/org/apache/camel/component/timer/TimerConsumer.java
index eb14575..7c201bd 100644
--- a/components/camel-timer/src/main/java/org/apache/camel/component/timer/TimerConsumer.java
+++ b/components/camel-timer/src/main/java/org/apache/camel/component/timer/TimerConsumer.java
@@ -212,10 +212,7 @@ public class TimerConsumer extends DefaultConsumer implements StartupListener, S
TimerConsumer.this.getExceptionHandler().handleException("Error processing exchange", exchange,
exchange.getException());
}
- // sync wil release outside this callback
- if (!cbDoneSync) {
- TimerConsumer.this.releaseExchange(exchange, false);
- }
+ TimerConsumer.this.releaseExchange(exchange, false);
}
});
} else {