From 03abe320547e27844e212d20c1f50c11d467805f Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sun, 14 Oct 2012 00:31:28 +0100 Subject: [PATCH] Fix #2185: register call should be deregister in deregister_event_handler --- deluge/ui/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/client.py b/deluge/ui/client.py index e55f1a355..4d923caf2 100644 --- a/deluge/ui/client.py +++ b/deluge/ui/client.py @@ -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