Skip to content

Commit

Permalink
properly decrement p2p socket count
Browse files Browse the repository at this point in the history
  • Loading branch information
tewinget committed Jun 6, 2015
1 parent 431397a commit d7df08d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/p2p/connection_basic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d7df08d

Please sign in to comment.