fix optimistic unchoke when there is no metadata
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user