mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Fixed ratio saving for seeding torrents
This commit is contained in:
parent
443567486e
commit
681b8c14ad
1 changed files with 13 additions and 0 deletions
|
@ -1393,6 +1393,19 @@ void bittorrent::saveFastResumeAndRatioData() {
|
||||||
}
|
}
|
||||||
saveFastResumeAndRatioData(hash);
|
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) {
|
void bittorrent::saveFastResumeAndRatioData(QString hash) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue