mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
Move increment out of loop
This commit is contained in:
committed by
sledgehammer999
parent
a5a242377b
commit
e62f9ef56a
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user