Skip to content
Snippets Groups Projects
Commit da4f8cad authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

correctly unset sessions

parent e8426d4c
No related branches found
No related tags found
No related merge requests found
......@@ -219,12 +219,7 @@ class MessageControl(object):
def remove_session(self, session):
if session != self.session:
return
last_session = None
if self.other_sessions:
last_session = self.other_sessions.pop(0)
if session not in self.other_sessions:
self.other_sessions.append(session)
self.session = last_session
self.session = None
def _nec_message_outgoing(self, obj):
# Send the given message to the active tab.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment