From ccb1a880aa413ac5944b8089ba2db8a15b4b88f9 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 12 Apr 2012 00:02:35 +0000 Subject: [PATCH] fixed unchoke logic when using web seeds --- ChangeLog | 3 +++ src/session_impl.cpp | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c772690d9..d062ead44 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,7 @@ + * fixed unchoke logic when using web seeds + * fixed compatibility with older versions of boost (down to boost 1.40) + 0.16 release * support torrents with more than 262000 pieces diff --git a/src/session_impl.cpp b/src/session_impl.cpp index bf3e80ccd..77c785c67 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -4310,6 +4310,7 @@ namespace aux { TORRENT_ASSERT(p); policy::peer* pi = p->peer_info_struct(); if (!pi) continue; + if (pi->web_seed) continue; torrent* t = p->associated_torrent().lock().get(); if (!t) continue; if (t->is_paused()) continue; @@ -4408,7 +4409,8 @@ namespace aux { torrent* t = p->associated_torrent().lock().get(); policy::peer* pi = p->peer_info_struct(); - if (p->ignore_unchoke_slots() || t == 0 || pi == 0 || t->is_paused()) continue; + if (p->ignore_unchoke_slots() || t == 0 || pi == 0 || pi->web_seed || t->is_paused()) + continue; if (m_settings.choking_algorithm == session_settings::bittyrant_choker) {