Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJefry Lagrange <jefry.reyes@gmail.com>2011-06-17 02:59:21 +0400
committerJefry Lagrange <jefry.reyes@gmail.com>2011-06-17 02:59:21 +0400
commit4971f7d8cc03e94b409d278c4be09720082dcbec (patch)
tree33d5e16ace7725decb991e458a93939ef650c958 /src/common/xmpp
parentdb7276752b267c4ad794c321ed6849c95656f95b (diff)
enable SM before sending negociation request
Diffstat (limited to 'src/common/xmpp')
-rw-r--r--src/common/xmpp/smacks.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/common/xmpp/smacks.py b/src/common/xmpp/smacks.py
index 658133390..e64c14d34 100644
--- a/src/common/xmpp/smacks.py
+++ b/src/common/xmpp/smacks.py
@@ -56,7 +56,7 @@ class Smacks():
l = stanza.getAttr('location')
if l:
self.location = l
- self.enabled = True
+
def negociate(self, resume=True):
# Every time we attempt to negociate, we must erase all previous info
@@ -65,6 +65,7 @@ class Smacks():
self.in_h = 0
self.out_h = 0
self.session_id = None
+ self.enabled = True
stanza = Acks()
stanza.buildEnable(resume)
@@ -118,7 +119,6 @@ class Smacks():
# If the server doesn't recognize previd, forget about resuming
# Ask for service discovery, etc..
if stanza.getTag('item-not-found'):
- self.enabled = False
self.resuming = False
self.negociate()
self.con._discover_server_at_connection(self.con.connection)
@@ -126,7 +126,6 @@ class Smacks():
# Doesn't support resumption
if stanza.getTag('feature-not-implemented'):
- self.enabled = False
self.negociate(False)
return