Browse Source

Move increment out of loop

adaptive-webui-19844
Chocobo1 2 years ago
parent
commit
d90ea0d3be
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 4
      src/base/bittorrent/sessionimpl.cpp

4
src/base/bittorrent/sessionimpl.cpp

@ -2914,10 +2914,8 @@ void SessionImpl::generateResumeData()
void SessionImpl::saveResumeData() void SessionImpl::saveResumeData()
{ {
for (const TorrentImpl *torrent : asConst(m_torrents)) for (const TorrentImpl *torrent : asConst(m_torrents))
{
torrent->nativeHandle().save_resume_data(lt::torrent_handle::only_if_modified); torrent->nativeHandle().save_resume_data(lt::torrent_handle::only_if_modified);
++m_numResumeData; m_numResumeData += m_torrents.size();
}
// clear queued storage move jobs except the current ongoing one // clear queued storage move jobs except the current ongoing one
if (m_moveStorageQueue.size() > 1) if (m_moveStorageQueue.size() > 1)

Loading…
Cancel
Save