Skip to content

Commit

Permalink
Added a comment to the code
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishnu Alapati committed Jul 21, 2023
1 parent 7f848ac commit 43b3cc9
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@
import org.slf4j.LoggerFactory;

import com.ericsson.eiffel.remrem.publish.config.PropertiesConfig;
import com.ericsson.eiffel.remrem.publish.exception.RemRemPublishException;
import com.ericsson.eiffel.remrem.publish.exception.NackException;
import com.ericsson.eiffel.remrem.publish.exception.RemRemPublishException;
import com.rabbitmq.client.AMQP.BasicProperties;
import com.rabbitmq.client.AlreadyClosedException;
import com.rabbitmq.client.BlockedListener;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Connection;
Expand Down Expand Up @@ -279,9 +280,9 @@ public void shutdownCompleted(ShutdownSignalException cause) {
log.debug("Connection Shutdown completed " + cause.getMessage());
try {
rabbitConnection.close();
} catch (Throwable e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (AlreadyClosedException | IOException e) {
// This is intentionally added, if we do not call the close function, connection is not closed properly
// and the connections count is getting increased..
}
}
});
Expand Down

0 comments on commit 43b3cc9

Please sign in to comment.