From b75a1325cb165bcd64e8b505da556811cd336344 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 4 Oct 2007 17:29:11 +0000 Subject: [PATCH] fix to recent 'store banned peers' check-in --- src/session_impl.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/session_impl.cpp b/src/session_impl.cpp index 5734225e0..4001b35d7 100755 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -391,6 +391,14 @@ namespace detail processing->torrent_ptr->get_policy().peer_from_tracker(*i, id , peer_info::resume_data, 0); } + + for (std::vector::const_iterator i = processing->banned_peers.begin(); + i != processing->banned_peers.end(); ++i) + { + policy::peer* p = processing->torrent_ptr->get_policy().peer_from_tracker(*i, id + , peer_info::resume_data, 0); + if (p) p->banned = true; + } } else {