mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 13:53:37 -07:00
Move increment out of loop
This commit is contained in:
parent
a5a242377b
commit
e62f9ef56a
1 changed files with 1 additions and 3 deletions
|
@ -2916,10 +2916,8 @@ void SessionImpl::saveResumeData()
|
|||
saveTorrentsQueue();
|
||||
|
||||
for (const TorrentImpl *torrent : asConst(m_torrents))
|
||||
{
|
||||
torrent->nativeHandle().save_resume_data(lt::torrent_handle::only_if_modified);
|
||||
++m_numResumeData;
|
||||
}
|
||||
m_numResumeData += m_torrents.size();
|
||||
|
||||
QElapsedTimer timer;
|
||||
timer.start();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue