void peer_lost(bitfield const& bits, peer_connection const* peer) { if (has_picker()) { if (bits.all_set() && bits.size() > 0) m_picker->dec_refcount_all(peer); else m_picker->dec_refcount(bits, peer); } #ifdef TORRENT_DEBUG else { TORRENT_ASSERT(is_seed()); } #endif }
void peer_lost(bitfield const& bits) { if (has_picker()) { if (bits.all_set()) m_picker->dec_refcount_all(); else m_picker->dec_refcount(bits); } #ifdef TORRENT_DEBUG else { TORRENT_ASSERT(is_seed()); } #endif }