From b80940ac4f603ab9a3e0ea78e24e3c558ceac597 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 4 Feb 2010 17:19:00 +0000 Subject: [PATCH] - Optimize startup speed (do not resave fastresume data for torrents that were seeded in the previous session) --- src/bittorrent.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index b5d6bdf1e..67f34aed9 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -1823,7 +1823,9 @@ void Bittorrent::addConsoleMessage(QString msg, QString) { h.move_storage(save_dir.path()); } } - h.save_resume_data(); + bool was_already_seeded = TorrentPersistentData::isSeed(hash); + if(!was_already_seeded) + h.save_resume_data(); // Check if there are torrent files inside for(int i=0; i