fix invalid access when leaving seed-mode with outstanding hash jobs

This commit is contained in:
arvidn 2017-02-16 23:40:18 -05:00 committed by Arvid Norberg
parent f01801339c
commit 7b61313b99
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,4 @@
* fix invalid access when leaving seed-mode with outstanding hash jobs
* fix ABI compatibility issue introduced with preformatted entry type
* add web_seed_name_lookup_retry to session_settings
* slightly improve proxy settings backwards compatibility

View File

@ -5299,8 +5299,11 @@ namespace libtorrent
}
else
{
TORRENT_ASSERT(t->verifying_piece(j->piece));
if (t->seed_mode()) t->verified(j->piece);
if (t->seed_mode())
{
TORRENT_ASSERT(t->verifying_piece(j->piece));
t->verified(j->piece);
}
#ifndef TORRENT_DISABLE_LOGGING
peer_log(peer_log_alert::info, "SEED_MODE_FILE_HASH"