reverting a change that caused switching sessions within gui to break

This commit is contained in:
bharnden 2019-07-05 09:00:14 -07:00
parent ae5d718737
commit 836133c97d

View file

@ -1641,10 +1641,10 @@ class CoreHandler(socketserver.BaseRequestHandler):
logging.info("request to connect to session %s", session_id)
# remove client from session broker and shutdown if needed
self.remove_session_handlers()
self.session.broker.session_clients.remove(self)
if not self.session.broker.session_clients and not self.session.is_active():
self.coreemu.delete_session(self.session.id)
self.remove_session_handlers()
# set session to join
self.session = session