mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 13:56:47 +00:00
Process all alerts before shutting down torrentmanager
This commit is contained in:
parent
c5a7abe5d2
commit
3ed6e59cae
@ -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"]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user