Let save_resume_data build torrent list on stopping session

By having the func build the list we can skip torrents that we already have
resume data for (need_save_resume_data is False).
This commit is contained in:
Calum Lind 2014-02-24 14:58:38 +00:00
parent ea7ef950a3
commit f2535e196d

View File

@ -268,7 +268,7 @@ class TorrentManager(component.Component):
if result and os.path.isfile(self.temp_file):
os.remove(self.temp_file)
d = self.save_resume_data(self.torrents.keys())
d = self.save_resume_data()
d.addCallback(remove_temp_file)
return d