You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "squakez (via GitHub)" <gi...@apache.org> on 2025/12/03 10:05:34 UTC

Re: [PR] fix(components): snmp move Snmp object as a class type and closing it [camel]

squakez commented on code in PR #20203:
URL: https://github.com/apache/camel/pull/20203#discussion_r2584447173


##########
components/camel-snmp/src/main/java/org/apache/camel/component/snmp/SnmpTrapConsumer.java:
##########
@@ -88,7 +92,16 @@ protected void doStop() throws Exception {
             if (LOG.isDebugEnabled()) {
                 LOG.debug("Stopping trap consumer on {}", this.endpoint.getServerAddress());
             }
-            this.transport.close();
+            try {

Review Comment:
   Much cleaner indeed. Thanks for the tip!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org