From 64ee7c14a7f5b7ebd1e498a89c55a6c4211c98b2 Mon Sep 17 00:00:00 2001 From: js Date: Sat, 10 May 2008 14:23:55 +0000 Subject: [PATCH] Fix a backtrace. session isn't always defined here. Fixed. --- src/common/connection_handlers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index 0d881e694..a7191c6d1 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -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: