daemon: small adjustment/cleanup to shutting down all sessions from coreemu
This commit is contained in:
parent
543e9982c0
commit
388ae44cf2
1 changed files with 2 additions and 4 deletions
|
@ -140,10 +140,8 @@ class CoreEmu:
|
||||||
:return: nothing
|
:return: nothing
|
||||||
"""
|
"""
|
||||||
logger.info("shutting down all sessions")
|
logger.info("shutting down all sessions")
|
||||||
sessions = self.sessions.copy()
|
while self.sessions:
|
||||||
self.sessions.clear()
|
_, session = self.sessions.popitem()
|
||||||
for _id in sessions:
|
|
||||||
session = sessions[_id]
|
|
||||||
session.shutdown()
|
session.shutdown()
|
||||||
|
|
||||||
def create_session(self, _id: int = None, _cls: Type[Session] = Session) -> Session:
|
def create_session(self, _id: int = None, _cls: Type[Session] = Session) -> Session:
|
||||||
|
|
Loading…
Reference in a new issue