mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 00:17:23 -06:00
Fetch torrent status when generating final fastresume data
This is done to get correct queue position, which has to be written into the fastresume file. See discussion in #6154.
This commit is contained in:
@@ -485,8 +485,11 @@ bool TorrentHandle::needSaveResumeData() const
|
||||
SAFE_RETURN(bool, need_save_resume_data, false);
|
||||
}
|
||||
|
||||
void TorrentHandle::saveResumeData()
|
||||
void TorrentHandle::saveResumeData(bool updateStatus)
|
||||
{
|
||||
if (updateStatus) // to update queue_position, see discussion in PR #6154
|
||||
this->updateStatus();
|
||||
|
||||
SAFE_CALL(save_resume_data);
|
||||
m_needSaveResumeData = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user