diff options
author | Riccardo Spagni <ric@spagni.net> | 2015-06-11 10:27:54 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2015-06-11 10:27:58 +0200 |
commit | 1b25e8dfc5667d9e9c5607741c12dfe1610686b0 (patch) | |
tree | f56c9634ac9768d9c8a6f87b1eb659ce9d669d34 | |
parent | Merge pull request #308 (diff) | |
parent | properly decrement p2p socket count (diff) | |
download | monero-1b25e8dfc5667d9e9c5607741c12dfe1610686b0.tar.xz |
Merge pull request #311
d7df08d properly decrement p2p socket count (Thomas Winget)
-rw-r--r-- | src/p2p/connection_basic.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/p2p/connection_basic.cpp b/src/p2p/connection_basic.cpp index a7d68ac1e..8da03de18 100644 --- a/src/p2p/connection_basic.cpp +++ b/src/p2p/connection_basic.cpp @@ -169,6 +169,7 @@ connection_basic::connection_basic(boost::asio::io_service& io_service, std::ato connection_basic::~connection_basic() { string remote_addr_str = "?"; + m_ref_sock_count--; try { remote_addr_str = socket_.remote_endpoint().address().to_string(); } catch(...){} ; _note("Destructing connection p2p#"<<mI->m_peer_number << " to " << remote_addr_str); } |