diff --git a/cmd/signaling/server.go b/cmd/signaling/server.go index 026d454..5a4ef7e 100644 --- a/cmd/signaling/server.go +++ b/cmd/signaling/server.go @@ -193,3 +193,10 @@ func handleDisconnect(conn *websocket.Conn) { room.mu.Unlock() } } + +func cleanupRoom(roomID string) { + roomsMu.Lock() + delete(rooms, roomID) + roomsMu.Unlock() + log.Printf("Room %s cleaned up", roomID) +}