Merge pull request #487 from arvidn/fix-resume-checking-torrent

fix resuming of torrents that were checking files
This commit is contained in:
Arvid Norberg 2016-02-21 15:21:10 -05:00
commit d172733c87
1 changed files with 7 additions and 4 deletions

View File

@ -2277,7 +2277,7 @@ namespace libtorrent
// that when the resume data check fails. For instance, if the resume data
// is incorrect, but we don't have any files, we skip the check and initialize
// the storage to not have anything.
if (!should_start_full_check)
if (j->ret == 0)
{
// there are either no files for this torrent
// or the resume_data was accepted
@ -2349,10 +2349,9 @@ namespace libtorrent
}
}
}
files_checked();
}
else
if (should_start_full_check)
{
// either the fastresume data was rejected or there are
// some files
@ -2362,6 +2361,10 @@ namespace libtorrent
// start the checking right away (potentially)
m_ses.trigger_auto_manage();
}
else
{
files_checked();
}
maybe_done_flushing();
m_add_torrent_params.reset();