Fix issue where cannot resume torrent after doing a 'Pause All'

This commit is contained in:
Andrew Resch 2009-04-20 00:02:36 +00:00
parent e08c51e10c
commit 22c9fffad8
1 changed files with 4 additions and 2 deletions

View File

@ -354,12 +354,14 @@ class Core(component.Component):
@export
def pause_all_torrents(self):
"""Pause all torrents in the session"""
self.session.pause()
for torrent in self.torrentmanager.torrents.values():
torrent.pause()
@export
def resume_all_torrents(self):
"""Resume all torrents in the session"""
self.session.resume()
for torrent in self.torrentmanager.torrents.values():
torrent.resume()
component.get("EventManager").emit(SessionResumedEvent())
@export