summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/stanzabase.py
diff options
context:
space:
mode:
authorNathan Fritz <nathan@andyet.net>2010-04-13 19:35:47 -0700
committerNathan Fritz <nathan@andyet.net>2010-04-13 19:35:47 -0700
commitfef511fd518d98a6934bd8048292d07380675d16 (patch)
tree01ac929d270df2dbc1a89f7bfc6cbd541ec06144 /sleekxmpp/xmlstream/stanzabase.py
parent85c3d97d2a2621c9a0022af3f3545848b8012519 (diff)
downloadslixmpp-fef511fd518d98a6934bd8048292d07380675d16.tar.gz
slixmpp-fef511fd518d98a6934bd8048292d07380675d16.tar.bz2
slixmpp-fef511fd518d98a6934bd8048292d07380675d16.tar.xz
slixmpp-fef511fd518d98a6934bd8048292d07380675d16.zip
bugfix for .disconnect() hanging
Diffstat (limited to 'sleekxmpp/xmlstream/stanzabase.py')
-rw-r--r--sleekxmpp/xmlstream/stanzabase.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py
index 960e8a71..acb95786 100644
--- a/sleekxmpp/xmlstream/stanzabase.py
+++ b/sleekxmpp/xmlstream/stanzabase.py
@@ -210,6 +210,8 @@ class ElementBase(tostring.ToString):
return self
def __eq__(self, other):
+ if not isinstance(other, ElementBase):
+ return False
values = self.getValues()
for key in other:
if key not in values or values[key] != other[key]: