Fix a backtrace. session isn't always defined here. Fixed.
This commit is contained in:
parent
9438e3d175
commit
64ee7c14a7
|
@ -1509,8 +1509,8 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
|
||||||
if not mtype == 'groupchat':
|
if not mtype == 'groupchat':
|
||||||
session = self.get_session(frm, thread_id, mtype)
|
session = self.get_session(frm, thread_id, mtype)
|
||||||
|
|
||||||
if thread_id and not session.received_thread_id:
|
if thread_id and not session.received_thread_id:
|
||||||
session.received_thread_id = True
|
session.received_thread_id = True
|
||||||
|
|
||||||
# check if the message is pubsub#event
|
# check if the message is pubsub#event
|
||||||
if msg.getTag('event') is not None:
|
if msg.getTag('event') is not None:
|
||||||
|
|
Loading…
Reference in New Issue