Never save resume data for already paused torrents

This commit is contained in:
Vladimir Golovnev (Glassez) 2018-08-01 21:29:32 +03:00
parent 7716a27d0d
commit 2a6e38aa28
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7

View file

@ -2350,7 +2350,7 @@ void Session::generateResumeData(bool final)
{
foreach (TorrentHandle *const torrent, m_torrents) {
if (!torrent->isValid()) continue;
if (torrent->isChecking()) continue;
if (torrent->isChecking() || torrent->isPaused()) continue;
if (!final && !torrent->needSaveResumeData()) continue;
if (torrent->hasMissingFiles() || torrent->hasError()) continue;