[Core] Fix Twisted AlreadyCalled error on shutdown

This commit is contained in:
Calum Lind 2015-10-07 00:18:40 +01:00
parent 560318a5a7
commit 4b9dcf377c

View File

@ -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):