fix(backend_server.py): fix double-connection handling

This commit is contained in:
2026-03-05 13:01:09 +01:00
parent 0e7c948668
commit fbb75c263c

View File

@@ -44,7 +44,8 @@ class HelloHandler(BaseHandler):
# check if client already connected, if so disconnect old client and register new one
if (
client.id in self.backend_server.clients
and self.backend_server.clients[client.id].status == "connected"
and self.backend_server.clients[client.id].status
== ClientStatus.ONLINE
):
old_client: Client = self.backend_server.clients[client.id]
self.backend_server.logger.warning(