fix bug in seed mode when a piece fails hash check

This commit is contained in:
Arvid Norberg 2011-04-28 06:36:44 +00:00
parent 4fcb26c8ad
commit bbde8f772a
1 changed files with 1 additions and 1 deletions

View File

@ -4324,12 +4324,12 @@ namespace libtorrent
{
if (ret == -3)
{
if (t->seed_mode()) t->leave_seed_mode(false);
#if defined TORRENT_VERBOSE_LOGGING
peer_log("==> REJECT_PIECE [ piece: %d s: %d l: %d ]"
, r.piece , r.start , r.length);
#endif
write_reject_request(r);
if (t->seed_mode()) t->leave_seed_mode(false);
}
else
{