log4j-core/src/main/java/org/apache/logging/log4j/core/appender/mom/JmsManager.java [278:296]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private boolean closeConnection() {
        if (connection == null) {
            return true;
        }
        final Connection temp = connection;
        connection = null;
        try {
            temp.close();
            return true;
        } catch (final JMSException e) {
            StatusLogger.getLogger()
                    .debug(
                            "Caught exception closing JMS Connection: {} ({}); continuing JMS manager shutdown",
                            e.getLocalizedMessage(),
                            temp,
                            e);
            return false;
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



log4j-jakarta-jms/src/main/java/org/apache/logging/log4j/core/appender/mom/jakarta/JmsManager.java [275:293]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private boolean closeConnection() {
        if (connection == null) {
            return true;
        }
        final Connection temp = connection;
        connection = null;
        try {
            temp.close();
            return true;
        } catch (final JMSException e) {
            StatusLogger.getLogger()
                    .debug(
                            "Caught exception closing JMS Connection: {} ({}); continuing JMS manager shutdown",
                            e.getLocalizedMessage(),
                            temp,
                            e);
            return false;
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



