correctly unset sessions
This commit is contained in:
parent
e8426d4cef
commit
da4f8cad82
|
@ -219,12 +219,7 @@ class MessageControl(object):
|
||||||
def remove_session(self, session):
|
def remove_session(self, session):
|
||||||
if session != self.session:
|
if session != self.session:
|
||||||
return
|
return
|
||||||
last_session = None
|
self.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
|
|
||||||
|
|
||||||
def _nec_message_outgoing(self, obj):
|
def _nec_message_outgoing(self, obj):
|
||||||
# Send the given message to the active tab.
|
# Send the given message to the active tab.
|
||||||
|
|
Loading…
Reference in New Issue