Skip to content
This repository has been archived by the owner on Dec 22, 2024. It is now read-only.

Commit

Permalink
fix/91 (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl authored Jul 1, 2024
1 parent 0a1b723 commit eef5b14
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 eef5b14

Please sign in to comment.