daemon: small adjustment/cleanup to shutting down all sessions from coreemu

This commit is contained in:
Blake Harnden 2022-04-04 09:15:34 -07:00
parent 543e9982c0
commit 388ae44cf2

View file

@ -140,10 +140,8 @@ class CoreEmu:
:return: nothing
"""
logger.info("shutting down all sessions")
sessions = self.sessions.copy()
self.sessions.clear()
for _id in sessions:
session = sessions[_id]
while self.sessions:
_, session = self.sessions.popitem()
session.shutdown()
def create_session(self, _id: int = None, _cls: Type[Session] = Session) -> Session: