Browse Source

- Removed some debug

adaptive-webui-19844
Christophe Dumez 16 years ago
parent
commit
0538c9c3e8
  1. 3
      src/bittorrent.cpp

3
src/bittorrent.cpp

@ -1323,16 +1323,13 @@ void bittorrent::saveFastResumeData() {
"torrents to save resume data for" << std::endl; "torrents to save resume data for" << std::endl;
break; break;
} }
qDebug("Received an alert...");
save_resume_data_alert const* rd = dynamic_cast<save_resume_data_alert const*>(a); save_resume_data_alert const* rd = dynamic_cast<save_resume_data_alert const*>(a);
if (!rd) { if (!rd) {
s->pop_alert(); s->pop_alert();
continue; continue;
} }
qDebug("Alert is for resume data");
--num_resume_data; --num_resume_data;
if (!rd->resume_data) continue; if (!rd->resume_data) continue;
qDebug("saving resume data: %d", num_resume_data);
QDir torrentBackup(misc::qBittorrentPath() + "BT_backup"); QDir torrentBackup(misc::qBittorrentPath() + "BT_backup");
QTorrentHandle h(rd->handle); QTorrentHandle h(rd->handle);
QFile::remove(torrentBackup.path()+QDir::separator()+ h.hash() + ".fastresume"); QFile::remove(torrentBackup.path()+QDir::separator()+ h.hash() + ".fastresume");

Loading…
Cancel
Save