From 0074b10b880a3e368df5fab975a2ec11493bda2a Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 2 Sep 2008 05:54:05 +0000 Subject: [PATCH] fix optimistic unchoke when there is no metadata --- src/session_impl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/session_impl.cpp b/src/session_impl.cpp index b5cc97486..5f28c8832 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -1528,7 +1528,8 @@ namespace aux { && !p->is_disconnecting() && p->is_peer_interested() && t->free_upload_slots() - && p->is_choked()) + && p->is_choked() + && t->valid_metadata()) { last_unchoke = pi->last_optimistically_unchoked; optimistic_unchoke_candidate = i;