mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-24 07:05:25 -07:00
Update the cached state once recheck is started
We have to force update the cached state, otherwise someone will be able to get an incorrect one during the interval until the cached state is updated in a regular way. PR #18579. Closes #18559.
This commit is contained in:
parent
97a30218bc
commit
8e81d44b3c
1 changed files with 4 additions and 0 deletions
|
@ -1441,6 +1441,10 @@ void TorrentImpl::forceRecheck()
|
|||
if (!hasMetadata()) return;
|
||||
|
||||
m_nativeHandle.force_recheck();
|
||||
// We have to force update the cached state, otherwise someone will be able to get
|
||||
// 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;
|
||||
m_unchecked = false;
|
||||
m_completedFiles.fill(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue