1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-22 04:24:23 +00:00

- Fixed ratio saving for seeding torrents

This commit is contained in:
Christophe Dumez 2008-08-26 06:39:57 +00:00
parent 443567486e
commit 681b8c14ad

View File

@ -1393,6 +1393,19 @@ void bittorrent::saveFastResumeAndRatioData() {
}
saveFastResumeAndRatioData(hash);
}
hashes = getFinishedTorrents();
foreach(hash, hashes) {
QTorrentHandle h = getTorrentHandle(hash);
if(!h.is_valid()) {
qDebug("/!\\ Error: Invalid handle");
continue;
}
if(h.is_paused()) {
// Do not need to save fast resume data for paused torrents
continue;
}
saveDownloadUploadForTorrent(hash);
}
}
void bittorrent::saveFastResumeAndRatioData(QString hash) {