consider 0-sized piece messages to be reject messages

This commit is contained in:
Arvid Norberg 2008-11-17 19:29:14 +00:00
parent 51393dabdf
commit 70119a6b53
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}