Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Sep 27, 2023
1 parent 7fb2e34 commit f27fde3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ovos_bus_client/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,7 @@ def reset_default_session() -> Session:
with SessionManager.__lock:
sess = Session("default")
LOG.info(f"Default Session reset")
SessionManager.default_session = Session("default")
SessionManager.sessions["default"] = sess
SessionManager.default_session = SessionManager.sessions["default"] = Session("default")
return SessionManager.default_session

@staticmethod
Expand All @@ -553,7 +552,6 @@ def update(sess: Session, make_default: bool = False):
LOG.debug(f"replacing default session with: {sess.serialize()}")
SessionManager.default_session = sess
else:

LOG.debug(f"session updated: {sess.session_id}")
SessionManager.sessions[sess.session_id] = sess

Expand Down

0 comments on commit f27fde3

Please sign in to comment.