Skip to content

Commit

Permalink
fix/91
Browse files Browse the repository at this point in the history
closes #91
  • Loading branch information
JarbasAl committed Jun 30, 2024
1 parent 0a1b723 commit d7fac17
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hivemind_core/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,10 @@ def handle_bus_message(
LOG.debug(f"Client session updated: {client.sess.serialize()}")
if old != client.peer:
LOG.debug(f"Client session_id changed! new peer_id: {client.peer}")
self.clients[client.peer] = self.clients.pop(old)
if old in self.clients:
self.clients[client.peer] = self.clients.pop(old)
else:
self.clients[client.peer] = client

self.handle_inject_mycroft_msg(message.payload, client)
if self.mycroft_bus_callback:
Expand Down

0 comments on commit d7fac17

Please sign in to comment.