From c7c1ea26f9ccc7ec5a7b23de033cf0b2635b5a5b Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Fri, 8 Feb 2008 22:51:41 +0000 Subject: [PATCH] Fix resuming all torrents. --- deluge/core/torrentmanager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py index 88a25f6b0..6417390a9 100644 --- a/deluge/core/torrentmanager.py +++ b/deluge/core/torrentmanager.py @@ -323,7 +323,7 @@ class TorrentManager(component.Component): torrent_was_paused = False for key in self.torrents.keys(): try: - self.torrents[key].handle.pause() + self.torrents[key].pause() torrent_was_paused = True except: log.warning("Unable to pause torrent %s", key) @@ -334,7 +334,7 @@ class TorrentManager(component.Component): """Resumes all torrents.. Returns True if at least 1 torrent is resumed""" torrent_was_resumed = False for key in self.torrents.keys(): - if self.resume(key): + if self.torrents[key].resume(): torrent_was_resumed = True else: log.warning("Unable to resume torrent %s", key)