improve web seed hash failure mode

This commit is contained in:
Arvid Norberg
2012-09-29 17:46:41 +00:00
parent f326525e8e
commit c56901e864
9 changed files with 96 additions and 5 deletions

View File

@@ -933,7 +933,7 @@ namespace libtorrent
#endif
}
void peer_connection::received_invalid_data(int index)
bool peer_connection::received_invalid_data(int index, bool single_peer)
{
INVARIANT_CHECK;
@@ -946,6 +946,7 @@ namespace libtorrent
} TORRENT_CATCH(std::exception&) {}
}
#endif
return true;
}
size_type peer_connection::total_free_upload() const