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
path: root/src
diff options
context:
space:
mode:
authorBrendan Taylor <bct@diffeq.com>2008-10-12 02:02:20 +0400
committerBrendan Taylor <bct@diffeq.com>2008-10-12 02:02:20 +0400
commit6e596e3db0b422335c07ecdec2ae55e4b5c8b838 (patch)
treea1164950edfef099529e2b4d38d952ad2f5f41b3 /src
parentaddbc34bc6ab6c4e913f4a6b41ef79a42da2691b (diff)
renegotiate e2e after somebody reconnects (still doesn't work for PM)
Diffstat (limited to 'src')
-rw-r--r--src/session.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/session.py b/src/session.py
index fadada2e6..c73685790 100644
--- a/src/session.py
+++ b/src/session.py
@@ -44,17 +44,18 @@ class ChatControlSession(stanza_session.EncryptedStanzaSession):
self.control = None
- def acknowledge_termination(self):
+ def detach_from_control(self):
if self.control:
+ self.control.no_autonegotiation = False
self.control.set_session(None)
+ def acknowledge_termination(self):
+ self.detach_from_control()
stanza_session.EncryptedStanzaSession.acknowledge_termination(self)
def terminate(self):
stanza_session.EncryptedStanzaSession.terminate(self)
-
- if self.control:
- self.control.set_session(None)
+ self.detach_from_control()
# extracts chatstate from a <message/> stanza
def get_chatstate(self, msg, msgtxt):