Skip to content

Commit

Permalink
Don't forget to resume "missing files" torrent when rechecking
Browse files Browse the repository at this point in the history
PR #20747.
  • Loading branch information
glassez committed Apr 24, 2024
1 parent ddb0ff2 commit ca71c18
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/base/bittorrent/torrentimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1608,7 +1608,17 @@ void TorrentImpl::forceRecheck()
// an incorrect one during the interval until the cached state is updated in a regular way.
m_nativeStatus.state = lt::torrent_status::checking_resume_data;

m_hasMissingFiles = false;
if (m_hasMissingFiles)
{
m_hasMissingFiles = false;
if (!isStopped())
{
setAutoManaged(m_operatingMode == TorrentOperatingMode::AutoManaged);
if (m_operatingMode == TorrentOperatingMode::Forced)
m_nativeHandle.resume();
}
}

m_unchecked = false;

m_completedFiles.fill(false);
Expand Down

0 comments on commit ca71c18

Please sign in to comment.