From 2449f5b99e2f2eb3c5b982c0e02705e94daf5166 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Thu, 17 Jul 2014 00:11:15 +0100 Subject: [PATCH] Fix strange resume_data bug causing fastresume not save on shutdown --- deluge/core/torrentmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py index 484a41e50..b5a1e4d13 100644 --- a/deluge/core/torrentmanager.py +++ b/deluge/core/torrentmanager.py @@ -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"""