Skip to content

Commit

Permalink
net: Bring back log message when resetting socket
Browse files Browse the repository at this point in the history
Useful in case new disconnects creep in which are not using DisconnectMsg().
  • Loading branch information
hodlinator committed Jan 2, 2025
1 parent ab13cee commit 406b56c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,7 @@ void CNode::CloseSocketDisconnect()
fDisconnect = true;
LOCK(m_sock_mutex);
if (m_sock) {
LogDebug(BCLog::NET, "Resetting socket for peer=%d%s", GetId(), LogIP(fLogIPs));
m_sock.reset();
}
m_i2p_sam_session.reset();
Expand Down

0 comments on commit 406b56c

Please sign in to comment.