- BUGFIX: Do not save fastresume data for checking torrents anymore

This commit is contained in:
Christophe Dumez
2007-11-19 20:45:35 +00:00
parent 2ee152a374
commit 7edbaa3847
2 changed files with 3 additions and 4 deletions

5
TODO
View File

@@ -57,6 +57,5 @@ rc8->final? changelog:
- BUGFIX: Remember properties window size and position - BUGFIX: Remember properties window size and position
- BUGFIX: Improved proxy support in search engine (HTTP only) - BUGFIX: Improved proxy support in search engine (HTTP only)
- BUGFIX: Do no pause torrents before saving fastresume data anymore (no longer needed) - BUGFIX: Do no pause torrents before saving fastresume data anymore (no longer needed)
- BUGFIX: Save fast resume data regularly (every 10 seconds) to avoid downloading from s - BUGFIX: Save fast resume data regularly (every 10 seconds) to avoid downloading from scratch if qBittorrent crashes
cratch if qBittorrent crashes - BUGFIX: Do not save fastresume data for checking torrents anymore

View File

@@ -845,7 +845,7 @@ void bittorrent::saveFastResumeAndRatioData() {
} }
QString hash = h.hash(); QString hash = h.hash();
// Extracting resume data // Extracting resume data
if (h.has_metadata()) { if (h.has_metadata() && h.state() != torrent_status::checking_files && h.state() != torrent_status::queued_for_checking) {
if(QFile::exists(torrentBackup.path()+QDir::separator()+hash+".torrent")) { if(QFile::exists(torrentBackup.path()+QDir::separator()+hash+".torrent")) {
// Remove old .fastresume data in case it exists // Remove old .fastresume data in case it exists
QFile::remove(torrentBackup.path()+QDir::separator()+hash + ".fastresume"); QFile::remove(torrentBackup.path()+QDir::separator()+hash + ".fastresume");