Skip to content

Commit

Permalink
Fixed method names and log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
amitjoy committed Dec 12, 2023
1 parent 607ebe2 commit 2c03858
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,11 @@ private void disconnect(final boolean isNormalDisconnection) {
.reasonCode(reasonCode)
.reasonString(reasonDescription);

if (config.useSessionExpiryIntervalForDisconnect()) {
if (config.useSessionExpiryForDisconnect()) {
logger.debug("Applying Session Expiry Interval for Disconnect: {}", config.sessionExpiryIntervalForDisconnect());
disconnectParams.sessionExpiryInterval(config.sessionExpiryIntervalForDisconnect());
} else {
logger.debug("Session Expiry Interval for Disconnect is not enabled");
logger.debug("Session Expiry for Disconnect is not enabled");
disconnectParams.noSessionExpiry();
}
disconnectParams.send();
Expand Down Expand Up @@ -541,11 +541,11 @@ private void connect() {
.cleanStart(config.cleanStart())
.keepAlive(config.keepAliveInterval());

if (config.useSessionExpiryInterval()) {
if (config.useSessionExpiry()) {
logger.debug("Applying Session Expiry Interval: {}", config.sessionExpiryInterval());
connectionParams.sessionExpiryInterval(config.sessionExpiryInterval());
} else {
logger.debug("Session Expiry Interval is not enabled");
logger.debug("Session Expiry is not enabled");
connectionParams.noSessionExpiry();
}

Expand Down

0 comments on commit 2c03858

Please sign in to comment.