Fix a backtrace. session isn't always defined here. Fixed.

This commit is contained in:
js 2008-05-10 14:23:55 +00:00
parent 9438e3d175
commit 64ee7c14a7
1 changed files with 2 additions and 2 deletions

View File

@ -1509,8 +1509,8 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
if not mtype == 'groupchat':
session = self.get_session(frm, thread_id, mtype)
if thread_id and not session.received_thread_id:
session.received_thread_id = True
if thread_id and not session.received_thread_id:
session.received_thread_id = True
# check if the message is pubsub#event
if msg.getTag('event') is not None: