From 42ca7b97bdad981e41c3109df2ec755b1a25c0fc Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Mon, 15 Sep 2008 17:06:36 +0000 Subject: [PATCH] Fix fastresume saving on shutdown --- deluge/core/torrentmanager.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py index 51b4ad5cf..15791ec1a 100644 --- a/deluge/core/torrentmanager.py +++ b/deluge/core/torrentmanager.py @@ -179,7 +179,6 @@ class TorrentManager(component.Component): # Save state on shutdown self.save_state() - component.pause("AlertManager") for key in self.torrents.keys(): if not self.torrents[key].handle.is_paused(): # We set auto_managed false to prevent lt from resuming the torrent @@ -188,7 +187,7 @@ class TorrentManager(component.Component): self.shutdown_torrent_pause_list.append(key) # We have to wait for all torrents to pause and write their resume data wait = True - while self.shutdown_torrent_pause_list and wait: + while self.shutdown_torrent_pause_list or wait: wait = False for torrent in self.torrents.values(): if torrent.waiting_on_resume_data: