mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 01:48:40 +00:00
[Core] Fix Twisted AlreadyCalled error on shutdown
This commit is contained in:
parent
560318a5a7
commit
4b9dcf377c
1 changed files with 2 additions and 1 deletions
|
@ -74,7 +74,8 @@ class AlertManager(component.Component):
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
for dc in self.delayed_calls:
|
for dc in self.delayed_calls:
|
||||||
dc.cancel()
|
if dc.active():
|
||||||
|
dc.cancel()
|
||||||
self.delayed_calls = []
|
self.delayed_calls = []
|
||||||
|
|
||||||
def register_handler(self, alert_type, handler):
|
def register_handler(self, alert_type, handler):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue