Browse Source

Startup optimization

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

3
src/bittorrent.cpp

@ -1824,7 +1824,7 @@ void Bittorrent::addConsoleMessage(QString msg, QString) { @@ -1824,7 +1824,7 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
}
}
bool was_already_seeded = TorrentPersistentData::isSeed(hash);
if(!was_already_seeded)
if(!was_already_seeded) {
h.save_resume_data();
// Check if there are torrent files inside
for(int i=0; i<h.get_torrent_info().num_files(); ++i) {
@ -1845,6 +1845,7 @@ void Bittorrent::addConsoleMessage(QString msg, QString) { @@ -1845,6 +1845,7 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
}
}
}
}
// Recheck if the user asked to
if(Preferences::recheckTorrentsOnCompletion() && !was_already_seeded) {
// Remember finished state

Loading…
Cancel
Save