|
|
@ -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) |
|
|
|