mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04: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:
parent
04b848e482
commit
bbac17608d
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue