diff options
author | Thomas Winget <tewinget@gmail.com> | 2015-06-06 13:24:33 -0400 |
---|---|---|
committer | Thomas Winget <tewinget@gmail.com> | 2015-06-06 13:24:33 -0400 |
commit | d7df08d6ec9ce491b8c1d6e5ac3884946f7c0f7d (patch) | |
tree | 8c539ca10889df1379c659ce0e8c7752874ceb81 /src/p2p | |
parent | Merge pull request #302 (diff) | |
download | monero-d7df08d6ec9ce491b8c1d6e5ac3884946f7c0f7d.tar.xz |
properly decrement p2p socket count
Diffstat (limited to 'src/p2p')
-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); } |