mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-08 11:44:14 +01:00
net: Bring back log message when resetting socket
Useful in case new disconnects creep in which are not using DisconnectMsg().
This commit is contained in:
@@ -558,6 +558,7 @@ void CNode::CloseSocketDisconnect()
|
|||||||
fDisconnect = true;
|
fDisconnect = true;
|
||||||
LOCK(m_sock_mutex);
|
LOCK(m_sock_mutex);
|
||||||
if (m_sock) {
|
if (m_sock) {
|
||||||
|
LogDebug(BCLog::NET, "Resetting socket for peer=%d%s", GetId(), LogIP(fLogIPs));
|
||||||
m_sock.reset();
|
m_sock.reset();
|
||||||
}
|
}
|
||||||
m_i2p_sam_session.reset();
|
m_i2p_sam_session.reset();
|
||||||
|
|||||||
Reference in New Issue
Block a user