Process all alerts before shutting down torrentmanager

This commit is contained in:
Andrew Resch 2008-06-23 00:11:57 +00:00
parent c5a7abe5d2
commit 3ed6e59cae
1 changed files with 2 additions and 2 deletions

View File

@ -154,8 +154,8 @@ class TorrentManager(component.Component):
self.save_state() self.save_state()
for key in self.torrents.keys(): for key in self.torrents.keys():
self.torrents[key].handle.pause() self.torrents[key].handle.pause()
# Wait for all alerts # Wait for all alerts
self.alerts.handle_alerts(True) self.alerts.handle_alerts(True)
def update(self): def update(self):
if self.config["stop_seed_at_ratio"]: if self.config["stop_seed_at_ratio"]: