check if remote contact support esession or session. If it supports esession, it supports session but may not announce it. see #4429

This commit is contained in:
Yann Leboulanger 2008-12-02 09:49:49 +00:00
parent bb33069da9
commit e90375bad3
1 changed files with 2 additions and 1 deletions

View File

@ -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]