Fix strange resume_data bug causing fastresume not save on shutdown

This commit is contained in:
Calum Lind 2014-07-17 00:11:15 +01:00
parent b3e323462c
commit 2449f5b99e
1 changed files with 1 additions and 1 deletions

View File

@ -771,7 +771,7 @@ class TorrentManager(component.Component):
be invoked when save is complete.
"""
if torrent_ids is None:
torrent_ids = (t[0] for t in self.torrents.iteritems() if t[1].handle.need_save_resume_data())
torrent_ids = (t[0] for t in self.torrents.iteritems() if t[1].status.need_save_resume)
def on_torrent_resume_save(dummy_result, torrent_id):
"""Recieved torrent resume_data alert so remove from waiting list"""