Summary
When client variables are set via the FastAPI REST bridge, the server continues to send the same variables after the client disconnects. This repeatedly recreates and removes the empty room, and logs keep printing.
Steps to Reproduce
- Start NetSync server.
- Connect a client to
default_room.
- Call the REST endpoint to set client variables for that device ID.
- Disconnect the client.
- Observe logs continuing to show “Created new room” / “Removed empty room” and repeated “Client Variable Changed”.
Expected
After the client disconnects, rooms should not be repeatedly created/removed.