return if torrent is aborted in files checked

This commit is contained in:
Arvid Norberg 2009-01-02 09:47:51 +00:00
parent 090502390f
commit a14421bde5
1 changed files with 2 additions and 0 deletions

View File

@ -3796,6 +3796,8 @@ namespace libtorrent
TORRENT_ASSERT(m_torrent_file->is_valid());
INVARIANT_CHECK;
if (m_abort) return;
// we might be finished already, in which case we should
// not switch to downloading mode.
if (m_state != torrent_status::finished)