|
|
@ -787,7 +787,7 @@ void bittorrent::saveFastResumeData() { |
|
|
|
std::vector<torrent_handle>::iterator torrentIT; |
|
|
|
std::vector<torrent_handle>::iterator torrentIT; |
|
|
|
for(torrentIT = torrents.begin(); torrentIT != torrents.end(); torrentIT++) { |
|
|
|
for(torrentIT = torrents.begin(); torrentIT != torrents.end(); torrentIT++) { |
|
|
|
QTorrentHandle h = QTorrentHandle(*torrentIT); |
|
|
|
QTorrentHandle h = QTorrentHandle(*torrentIT); |
|
|
|
if(!h.is_valid() || !h.has_metadata()) continue; |
|
|
|
if(!h.is_valid() || !h.has_metadata() || h.is_paused()) continue; |
|
|
|
if(h.state() == torrent_status::checking_files || h.state() == torrent_status::queued_for_checking) continue; |
|
|
|
if(h.state() == torrent_status::checking_files || h.state() == torrent_status::queued_for_checking) continue; |
|
|
|
h.save_resume_data(); |
|
|
|
h.save_resume_data(); |
|
|
|
++num_resume_data; |
|
|
|
++num_resume_data; |
|
|
|