parent
dbcfc984f5
commit
e09c93621e
|
@ -111,8 +111,10 @@ class StanzaSession(object):
|
||||||
self.negotiated = {}
|
self.negotiated = {}
|
||||||
|
|
||||||
def terminate(self):
|
def terminate(self):
|
||||||
# only send termination message if we think they might have XEP-0201 support
|
# only send termination message if we've sent a message and think they
|
||||||
if self.received_thread_id or self.last_receive == 0:
|
# have XEP-0201 support
|
||||||
|
if self.last_send > 0 and \
|
||||||
|
(self.received_thread_id or self.last_receive == 0):
|
||||||
msg = xmpp.Message()
|
msg = xmpp.Message()
|
||||||
feature = msg.NT.feature
|
feature = msg.NT.feature
|
||||||
feature.setNamespace(xmpp.NS_FEATURE)
|
feature.setNamespace(xmpp.NS_FEATURE)
|
||||||
|
|
Loading…
Reference in New Issue