mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
properly decrement p2p socket count
This commit is contained in:
parent
431397abfa
commit
d7df08d6ec
@ -169,6 +169,7 @@ connection_basic::connection_basic(boost::asio::io_service& io_service, std::ato
|
|||||||
|
|
||||||
connection_basic::~connection_basic() {
|
connection_basic::~connection_basic() {
|
||||||
string remote_addr_str = "?";
|
string remote_addr_str = "?";
|
||||||
|
m_ref_sock_count--;
|
||||||
try { remote_addr_str = socket_.remote_endpoint().address().to_string(); } catch(...){} ;
|
try { remote_addr_str = socket_.remote_endpoint().address().to_string(); } catch(...){} ;
|
||||||
_note("Destructing connection p2p#"<<mI->m_peer_number << " to " << remote_addr_str);
|
_note("Destructing connection p2p#"<<mI->m_peer_number << " to " << remote_addr_str);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user