Merge pull request #311

d7df08d properly decrement p2p socket count (Thomas Winget)
This commit is contained in:
Riccardo Spagni 2015-06-11 10:27:54 +02:00
commit 1b25e8dfc5
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
1 changed files with 1 additions and 0 deletions

View File

@ -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);
} }