mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 04:24:27 +00:00
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:
parent
ea7ef950a3
commit
f2535e196d
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user