From ba85a309e21e6a19e5949e8adceb9e5496b85ce4 Mon Sep 17 00:00:00 2001 From: lovetox Date: Sun, 3 May 2020 19:26:06 +0200 Subject: Dispatcher: Fix unregister_handler() --- nbxmpp/dispatcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nbxmpp/dispatcher.py b/nbxmpp/dispatcher.py index f3f412c..84ee7e8 100644 --- a/nbxmpp/dispatcher.py +++ b/nbxmpp/dispatcher.py @@ -303,7 +303,7 @@ class StanzaDispatcher(Observable): for handler_dict in self._handlers[xmlns][handler.name][specific]: if handler_dict['func'] != handler.callback: - return + continue try: self._handlers[xmlns][handler.name][specific].remove( -- cgit v1.2.3