*** empty log message ***

This commit is contained in:
Arvid Norberg
2003-12-21 17:28:27 +00:00
parent cb89ccf6be
commit 5ac9f67f23
11 changed files with 361 additions and 61 deletions

View File

@@ -466,6 +466,8 @@ namespace libtorrent {
m_pimpl->write(buf, piece_index, offset, size);
}
// TODO: must handle the case where some hashes are identical
// correctly
void piece_manager::impl::check_pieces(
boost::mutex& mutex
, detail::piece_checker_data& data
@@ -612,6 +614,8 @@ namespace libtorrent {
int found_piece = -1;
// TODO: there's still potential problems if some
// pieces have the same hash
for (int i = current_slot; i < m_info.num_pieces(); ++i)
{
if (pieces[i] && i != current_slot) continue;
@@ -620,7 +624,10 @@ namespace libtorrent {
i == m_info.num_pieces() - 1]->get();
if (hash == m_info.hash_for_piece(i))
{
found_piece = i;
if (i == current_slot) break;
}
}
if (found_piece != -1)