fix optimistic unchoke when there is no metadata

This commit is contained in:
Arvid Norberg 2008-09-02 05:54:05 +00:00
parent d179280da2
commit 0074b10b88
1 changed files with 2 additions and 1 deletions

View File

@ -1528,7 +1528,8 @@ namespace aux {
&& !p->is_disconnecting() && !p->is_disconnecting()
&& p->is_peer_interested() && p->is_peer_interested()
&& t->free_upload_slots() && t->free_upload_slots()
&& p->is_choked()) && p->is_choked()
&& t->valid_metadata())
{ {
last_unchoke = pi->last_optimistically_unchoked; last_unchoke = pi->last_optimistically_unchoked;
optimistic_unchoke_candidate = i; optimistic_unchoke_candidate = i;