added a unwanted_block_alert

This commit is contained in:
Arvid Norberg
2008-07-08 18:41:04 +00:00
parent 5c749bcb3c
commit 55a944c014
2 changed files with 25 additions and 2 deletions

View File

@@ -1523,8 +1523,8 @@ namespace libtorrent
{
if (t->alerts().should_post<peer_error_alert>())
{
t->alerts().post_alert(peer_error_alert(t->get_handle(), m_remote
, m_peer_id, "got a block that was not in the request queue"));
t->alerts().post_alert(unwanted_block_alert(t->get_handle(), m_remote
, m_peer_id, block_finished.block_index, block_finished.piece_index));
}
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_ERROR_LOGGING
(*m_logger) << " *** The block we just got was not in the "