diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2008-12-02 12:49:49 +0300 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2008-12-02 12:49:49 +0300 |
commit | e90375bad391cd136cba59170df1c5dc2848e129 (patch) | |
tree | 1b63c24b0e3e6736ad2c742222a11b3a51d1cd0b /src/common/connection_handlers.py | |
parent | bb33069da9f35318047d79fe081dd6004b3e0b17 (diff) |
check if remote contact support esession or session. If it supports esession, it supports session but may not announce it. see #4429
Diffstat (limited to 'src/common/connection_handlers.py')
-rw-r--r-- | src/common/connection_handlers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index 4b384791c..cf6762a01 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -2186,7 +2186,8 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco, contact = gajim.contacts.get_contact(self.name, jid_stripped) session_supported = gajim.capscache.is_supported(contact, - common.xmpp.NS_SSN) + common.xmpp.NS_SSN) or gajim.capscache.is_supported(contact, + common.xmpp.NS_ESESSION) if session_supported: sess.terminate() del self.sessions[jid_stripped][sess.thread_id] |