Browse Source

- Added h.is_valid check

adaptive-webui-19844
Christophe Dumez 17 years ago
parent
commit
def19ef88b
  1. 4
      src/bittorrent.cpp

4
src/bittorrent.cpp

@ -842,6 +842,10 @@ void bittorrent::saveFastResumeAndRatioData() { @@ -842,6 +842,10 @@ void bittorrent::saveFastResumeAndRatioData() {
QStringList hashes = getUnfinishedTorrents();
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;

Loading…
Cancel
Save