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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]