fix(backend_server.py): fix double-connection handling
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user