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

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

commit e6270f7a997b007902b40cab049f40c11c31d63e
Author: Otavio Rodolfo Piske <angusyo...@gmail.com>
AuthorDate: Fri Jun 23 14:41:25 2023 +0200

    (chores) camel-ftp: do not catch Throwable
---
 .../component/file/remote/RemoteFilePollingConsumerPollStrategy.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFilePollingConsumerPollStrategy.java
 
b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFilePollingConsumerPollStrategy.java
index c2e62bdfbcf..ba18b2b886b 100644
--- 
a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFilePollingConsumerPollStrategy.java
+++ 
b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFilePollingConsumerPollStrategy.java
@@ -40,7 +40,7 @@ public class RemoteFilePollingConsumerPollStrategy extends 
DefaultPollingConsume
                 }
                 try {
                     rfc.forceDisconnect();
-                } catch (Throwable t) {
+                } catch (Exception t) {
                     // ignore the exception
                     if (log.isDebugEnabled()) {
                         log.debug("Error occurred during force disconnecting 
from: {}. This exception will be ignored.",

Reply via email to