Skip to content

Commit

Permalink
Fix ControlConnection log message
Browse files Browse the repository at this point in the history
Log message notifying of closing the previous ControlConnection's channel
wrongly mentions current channel. Switch it to the previous instead.
  • Loading branch information
Bouncheck committed Sep 11, 2024
1 parent 34beedd commit 3446aae
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,9 @@ private void connect(
// We were reconnecting: make sure previous channel gets closed (it may
// still be open if reconnection was forced)
LOG.debug(
"[{}] Forcefully closing previous channel {}", logPrefix, channel);
"[{}] Forcefully closing previous channel {}",
logPrefix,
previousChannel);
previousChannel.forceClose();
}
context.getEventBus().fire(ChannelEvent.channelOpened(node));
Expand Down

0 comments on commit 3446aae

Please sign in to comment.