Browse Source

- Make sure the torrent is valid before saving fast resume data

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
ce31bef2cf
  1. 1
      src/bittorrent.cpp

1
src/bittorrent.cpp

@ -1136,6 +1136,7 @@ void Bittorrent::saveFastResumeData() { @@ -1136,6 +1136,7 @@ void Bittorrent::saveFastResumeData() {
if (!rd->resume_data) continue;
QDir torrentBackup(misc::qBittorrentPath() + "BT_backup");
QTorrentHandle h(rd->handle);
if(!h.is_valid()) continue;
// Remove old fastresume file if it exists
QFile::remove(torrentBackup.path()+QDir::separator()+ h.hash() + ".fastresume");
QString file = h.hash()+".fastresume";

Loading…
Cancel
Save