forked from premiere/premiere-libtorrent
consider 0-sized piece messages to be reject messages
This commit is contained in:
parent
51393dabdf
commit
70119a6b53
|
@ -1652,6 +1652,8 @@ namespace libtorrent
|
|||
t->alerts().post_alert(peer_error_alert(t->get_handle(), m_remote
|
||||
, m_peer_id, "peer sent 0 length piece"));
|
||||
}
|
||||
// This is used as a reject-request by bitcomet
|
||||
incoming_reject_request(p);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue