[Florob] Fix logic error resulting in a None type exception.
This commit is contained in:
parent
a48087aae7
commit
1f954582fb
1 changed files with 3 additions and 3 deletions
|
@ -1915,9 +1915,9 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream,
|
||||||
# Anyway, it is the old behavior when we assumed that
|
# Anyway, it is the old behavior when we assumed that
|
||||||
# not-existing contacts don't support anything
|
# not-existing contacts don't support anything
|
||||||
contact_exists = bool(contact)
|
contact_exists = bool(contact)
|
||||||
session_supported = contact_exists and \
|
session_supported = contact_exists and (
|
||||||
contact.supports(common.xmpp.NS_SSN) or \
|
contact.supports(common.xmpp.NS_SSN) or
|
||||||
contact.supports(common.xmpp.NS_ESESSION)
|
contact.supports(common.xmpp.NS_ESESSION))
|
||||||
if session_supported:
|
if session_supported:
|
||||||
sess.terminate()
|
sess.terminate()
|
||||||
del self.sessions[jid][sess.thread_id]
|
del self.sessions[jid][sess.thread_id]
|
||||||
|
|
Loading…
Add table
Reference in a new issue