From 6d922d00c38b608c2ae178738882fc00141bb301 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Thu, 16 Feb 2012 07:02:19 -0800 Subject: [PATCH] Fix remove_stanza(). Fixes issue #146 --- sleekxmpp/xmlstream/xmlstream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py index 8305a91b..9799c299 100644 --- a/sleekxmpp/xmlstream/xmlstream.py +++ b/sleekxmpp/xmlstream/xmlstream.py @@ -769,7 +769,7 @@ class XMLStream(object): stanza objects, but may still be processed using handlers and matchers. """ - del self.__root_stanza[stanza_class] + del self.__root_stanza.remove(stanza_class) def add_filter(self, mode, handler, order=None): """Add a filter for incoming or outgoing stanzas.