Fix requested torrent resume data handling

Session should increase an appropriate counter each time
the torrent resume data is requested to save.
This commit is contained in:
Vladimir Golovnev (Glassez)
2019-07-22 14:22:26 +03:00
parent e8850c7a70
commit 00d6c83ee5
3 changed files with 26 additions and 26 deletions

View File

@@ -508,6 +508,7 @@ bool TorrentHandle::needSaveResumeData() const
void TorrentHandle::saveResumeData()
{
m_nativeHandle.save_resume_data();
m_session->handleTorrentSaveResumeDataRequested(this);
}
int TorrentHandle::filesCount() const