diff --git a/deluge/core/alertmanager.py b/deluge/core/alertmanager.py index 6f6f40371..7c65abfff 100644 --- a/deluge/core/alertmanager.py +++ b/deluge/core/alertmanager.py @@ -74,7 +74,8 @@ class AlertManager(component.Component): def stop(self): for dc in self.delayed_calls: - dc.cancel() + if dc.active(): + dc.cancel() self.delayed_calls = [] def register_handler(self, alert_type, handler):