mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 13:05:37 +00:00
Fix #2185: register call should be deregister in deregister_event_handler
This commit is contained in:
parent
7695c4e566
commit
03abe32054
@ -665,7 +665,7 @@ that you forgot to install the deluged package or it's not in your PATH."))
|
||||
if event in self.__event_handlers and handler in self.__event_handlers[event]:
|
||||
self.__event_handlers[event].remove(handler)
|
||||
if self._daemon_proxy:
|
||||
self._daemon_proxy.register_event_handler(event, handler)
|
||||
self._daemon_proxy.deregister_event_handler(event, handler)
|
||||
|
||||
def force_call(self, block=False):
|
||||
# no-op for now.. we'll see if we need this in the future
|
||||
|
Loading…
x
Reference in New Issue
Block a user